diff options
author | maheshgudi | 2017-01-31 16:06:38 +0530 |
---|---|---|
committer | maheshgudi | 2017-02-03 12:08:37 +0530 |
commit | 59bc3b255ff8ca8678304a195a458e20a4b20dcf (patch) | |
tree | 8c2053e648607a9b14192786d636ba536c26b942 /yaksh | |
parent | f3731c3314410377133431ae1c6ac0199ed822e2 (diff) | |
download | online_test-59bc3b255ff8ca8678304a195a458e20a4b20dcf.tar.gz online_test-59bc3b255ff8ca8678304a195a458e20a4b20dcf.tar.bz2 online_test-59bc3b255ff8ca8678304a195a458e20a4b20dcf.zip |
removed none type in answerpaper generation
Diffstat (limited to 'yaksh')
-rw-r--r-- | yaksh/models.py | 4 |
1 files 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() |