GradingScheme   A
last analyzed

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 9
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __str__() 0 2 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