summaryrefslogtreecommitdiff
path: root/yaksh/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'yaksh/models.py')
-rw-r--r--yaksh/models.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/yaksh/models.py b/yaksh/models.py
index 2569892..28af8f6 100644
--- a/yaksh/models.py
+++ b/yaksh/models.py
@@ -765,6 +765,8 @@ class QuestionPaper(models.Model):
que_order = self.fixed_question_order.split(',')
for que_id in que_order:
ques.append(self.fixed_questions.get(id=que_id))
+ else:
+ ques = self.fixed_questions.all()
return ques
def __str__(self):