diff options
author | Prabhu Ramachandran | 2017-02-03 17:57:04 +0530 |
---|---|---|
committer | GitHub | 2017-02-03 17:57:04 +0530 |
commit | 227557f9047d4e382fa84ac5aff8079a5544f111 (patch) | |
tree | 63b84fa21c29c1b70a6f3010f68faad2c557eafd | |
parent | 6c49152a450bc91d03f762f33d9990c114bdbd58 (diff) | |
parent | 59bc3b255ff8ca8678304a195a458e20a4b20dcf (diff) | |
download | online_test-227557f9047d4e382fa84ac5aff8079a5544f111.tar.gz online_test-227557f9047d4e382fa84ac5aff8079a5544f111.tar.bz2 online_test-227557f9047d4e382fa84ac5aff8079a5544f111.zip |
Merge pull request #207 from maheshgudi/bugfixes_on_1feb
removed none type in answerpaper generation
-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() |