GradingScheme.__str__()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 2
rs 10
c 0
b 0
f 0
cc 1
1
from django.db import models
2
3
class GradingScheme(models.Model):
4
    title = models.CharField(max_length=200, help_text="Choose a directly understandable name, such as 'ECTS' or 'Pass / Fail'.")
5
    gradings = models.ManyToManyField('Grading', related_name='schemes', help_text="The list of gradings that form this grading scheme.")
6
7
    class Meta:
8
        app_label = 'opensubmit'
9
10
    def __str__(self):
11
        return self.title
12