diff options
Diffstat (limited to 'yaksh/models.py')
-rw-r--r-- | yaksh/models.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/yaksh/models.py b/yaksh/models.py index 068bd66..c5e73f6 100644 --- a/yaksh/models.py +++ b/yaksh/models.py @@ -756,6 +756,9 @@ class QuestionPaper(models.Model): questions = Question.objects.filter(active=True, summary="Yaksh Demo Question", user=user) + q_order = [str(que.id) for que in questions] + question_paper.fixed_questions_order = ",".join(q_order) + question_paper.save() # add fixed set of questions to the question paper question_paper.fixed_questions.add(*questions) |