summaryrefslogtreecommitdiff
path: root/testapp/exam/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'testapp/exam/models.py')
-rw-r--r--testapp/exam/models.py3
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"""