diff options
author | maheshgudi | 2017-10-12 18:05:11 +0530 |
---|---|---|
committer | maheshgudi | 2017-10-12 18:05:11 +0530 |
commit | 1ad1ef1c69cb8208e4d330a9695442b4d78134ac (patch) | |
tree | b8043422b21ddd1c630cb7f11030e1a045872697 /yaksh/models.py | |
parent | dc2d4c0654d6d7c23ccf7b10aa985cc6afe4f4a7 (diff) | |
download | online_test-1ad1ef1c69cb8208e4d330a9695442b4d78134ac.tar.gz online_test-1ad1ef1c69cb8208e4d330a9695442b4d78134ac.tar.bz2 online_test-1ad1ef1c69cb8208e4d330a9695442b4d78134ac.zip |
Fix User data UI bug and auto-updates demo course total marks
Diffstat (limited to 'yaksh/models.py')
-rw-r--r-- | yaksh/models.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/yaksh/models.py b/yaksh/models.py index 9603282..f7d9906 100644 --- a/yaksh/models.py +++ b/yaksh/models.py @@ -925,7 +925,6 @@ class QuestionPaper(models.Model): def create_demo_quiz_ppr(self, demo_quiz, user): question_paper = QuestionPaper.objects.create(quiz=demo_quiz, - total_marks=6.0, shuffle_questions=False ) summaries = ['Roots of quadratic equation', 'Print Output', @@ -941,6 +940,8 @@ class QuestionPaper(models.Model): question_paper.save() # add fixed set of questions to the question paper question_paper.fixed_questions.add(*questions) + question_paper.update_total_marks() + question_paper.save() def get_ordered_questions(self): ques = [] |