summaryrefslogtreecommitdiff
path: root/testapp/exam/models.py
diff options
context:
space:
mode:
authorHardik Ghaghada2013-07-02 16:21:27 +0530
committerHardik Ghaghada2013-07-02 16:21:27 +0530
commitb09885165ccb5be44827507b092216d50dd953b2 (patch)
tree828bbc678212b2bba2ce376e0dff98b8d271b10f /testapp/exam/models.py
parentf5ef323d03dd80e1ae00f306ac44f5ee3efb3e7c (diff)
downloadonline_test-b09885165ccb5be44827507b092216d50dd953b2.tar.gz
online_test-b09885165ccb5be44827507b092216d50dd953b2.tar.bz2
online_test-b09885165ccb5be44827507b092216d50dd953b2.zip
Edited view to give a message if all the questions are correctly answered
Diffstat (limited to 'testapp/exam/models.py')
-rw-r--r--testapp/exam/models.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/testapp/exam/models.py b/testapp/exam/models.py
index 00d32e4..da9bc0a 100644
--- a/testapp/exam/models.py
+++ b/testapp/exam/models.py
@@ -113,6 +113,7 @@ class Quiz(models.Model):
class QuestionPaper(models.Model):
quiz = models.ForeignKey(Quiz)
questions = models.ManyToManyField(Question)
+ total_marks = models.FloatField()
################################################################################
class AnswerPaper(models.Model):