diff options
author | prathamesh | 2014-06-22 09:42:38 +0530 |
---|---|---|
committer | prathamesh | 2014-06-22 09:42:38 +0530 |
commit | c525c8f26b8e926733d5e4e3d415e19250e54e72 (patch) | |
tree | 7e29521a61b1717bb011275c8e38a9ab5d23ac22 /testapp/exam/models.py | |
parent | a31b44d170a26a51587d3c1c1080d5d90f1db356 (diff) | |
download | online_test-c525c8f26b8e926733d5e4e3d415e19250e54e72.tar.gz online_test-c525c8f26b8e926733d5e4e3d415e19250e54e72.tar.bz2 online_test-c525c8f26b8e926733d5e4e3d415e19250e54e72.zip |
Made changes to update_total_marks method
Diffstat (limited to 'testapp/exam/models.py')
-rw-r--r-- | testapp/exam/models.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/testapp/exam/models.py b/testapp/exam/models.py index 22c7913..42c5d5a 100644 --- a/testapp/exam/models.py +++ b/testapp/exam/models.py @@ -148,7 +148,8 @@ class QuestionPaper(models.Model): marks += question.points for question_set in self.random_questions.all(): marks += question_set.marks * question_set.num_questions - return marks + self.total_marks = marks + return None def _get_questions_for_answerpaper(self): """ Returns fixed and random questions for the answer paper""" |