summaryrefslogtreecommitdiff
path: root/yaksh
diff options
context:
space:
mode:
authoradityacp2017-10-06 18:11:37 +0530
committeradityacp2017-10-06 18:11:37 +0530
commitf4fd03fd09c53a655eedaaa7b9804591ca434966 (patch)
tree32159d645c9b2b2ab00fb09e880331eafb15613d /yaksh
parentab71b790f209e44b22142f360a9de1e95091ead3 (diff)
downloadonline_test-f4fd03fd09c53a655eedaaa7b9804591ca434966.tar.gz
online_test-f4fd03fd09c53a655eedaaa7b9804591ca434966.tar.bz2
online_test-f4fd03fd09c53a655eedaaa7b9804591ca434966.zip
Disable shuffle questions for demo quiz
Diffstat (limited to 'yaksh')
-rw-r--r--yaksh/models.py4
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)