From f4fd03fd09c53a655eedaaa7b9804591ca434966 Mon Sep 17 00:00:00 2001 From: adityacp Date: Fri, 6 Oct 2017 18:11:37 +0530 Subject: Disable shuffle questions for demo quiz --- yaksh/models.py | 4 ++-- 1 file 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) -- cgit