From 59bc3b255ff8ca8678304a195a458e20a4b20dcf Mon Sep 17 00:00:00 2001 From: maheshgudi Date: Tue, 31 Jan 2017 16:06:38 +0530 Subject: removed none type in answerpaper generation --- yaksh/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yaksh/models.py b/yaksh/models.py index b917889..3a6b326 100644 --- a/yaksh/models.py +++ b/yaksh/models.py @@ -954,10 +954,10 @@ class AnswerPaper(models.Model): comments = models.TextField() # Total marks earned by the student in this paper. - marks_obtained = models.FloatField(null=True, default=None) + marks_obtained = models.FloatField(null=True, default=0.0) # Marks percent scored by the user - percent = models.FloatField(null=True, default=None) + percent = models.FloatField(null=True, default=0.0) # Result of the quiz, True if student passes the exam. passed = models.NullBooleanField() -- cgit