From 29f93bce956af26e1b3ffe5ffc04e02c9f32de59 Mon Sep 17 00:00:00 2001 From: adityacp Date: Thu, 2 Jan 2020 15:34:18 +0530 Subject: Change UI in add grades template --- grades/models.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'grades/models.py') 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() -- cgit