diff options
author | adityacp | 2017-10-06 18:11:37 +0530 |
---|---|---|
committer | adityacp | 2017-10-06 18:11:37 +0530 |
commit | f4fd03fd09c53a655eedaaa7b9804591ca434966 (patch) | |
tree | 32159d645c9b2b2ab00fb09e880331eafb15613d /yaksh/models.py | |
parent | ab71b790f209e44b22142f360a9de1e95091ead3 (diff) | |
download | online_test-f4fd03fd09c53a655eedaaa7b9804591ca434966.tar.gz online_test-f4fd03fd09c53a655eedaaa7b9804591ca434966.tar.bz2 online_test-f4fd03fd09c53a655eedaaa7b9804591ca434966.zip |
Disable shuffle questions for demo quiz
Diffstat (limited to 'yaksh/models.py')
-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 9ac629c..c6f6a6b 100644 --- a/yaksh/models.py +++ b/yaksh/models.py @@ -924,7 +924,7 @@ 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=True + shuffle_questions=False ) summaries = ['Roots of quadratic equation', 'Print Output', 'Adding decimals', 'For Loop over String', @@ -1241,7 +1241,7 @@ class AnswerPaper(models.Model): return self.questions.get(id=next_id) def get_all_ordered_questions(self): - """Get all questions in a specific""" + """Get all questions in a specific order for answerpaper""" if self.questions_order: que_ids = [int(q_id) for q_id in self.questions_order.split(',')] questions = [self.questions.get(id=que_id) |