summaryrefslogtreecommitdiff
path: root/grades/models.py
diff options
context:
space:
mode:
authoradityacp2020-01-02 15:34:18 +0530
committeradityacp2020-01-02 15:34:18 +0530
commit29f93bce956af26e1b3ffe5ffc04e02c9f32de59 (patch)
tree9d7f566a2d7e5d333d34efa3e1c3fa115a54fa92 /grades/models.py
parentd60050dcfe7e32dc720e48942c7457860da79d6b (diff)
downloadonline_test-29f93bce956af26e1b3ffe5ffc04e02c9f32de59.tar.gz
online_test-29f93bce956af26e1b3ffe5ffc04e02c9f32de59.tar.bz2
online_test-29f93bce956af26e1b3ffe5ffc04e02c9f32de59.zip
Change UI in add grades template
Diffstat (limited to 'grades/models.py')
-rw-r--r--grades/models.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/grades/models.py b/grades/models.py
index fcea510..b395a24 100644
--- a/grades/models.py
+++ b/grades/models.py
@@ -44,3 +44,6 @@ class GradeRange(models.Model):
upper_limit = models.FloatField()
grade = models.CharField(max_length=10)
description = models.CharField(max_length=127, null=True, blank=True)
+
+ def __str__(self):
+ return self.system.name.title()