fix question ordering through mark systems
This commit is contained in:
+4
-1
@@ -886,7 +886,10 @@ class ExamBase(ExamOrCollectionGenericBase):
|
||||
# return super().clean(*args, **kwargs)
|
||||
|
||||
def get_questions(self):
|
||||
"""Returns a list of questions in the exam in the correct order"""
|
||||
"""Returns a list of questions in the exam in the correct order
|
||||
|
||||
This should be used in preference to exam_questions.all() as it
|
||||
will order the questions correctly"""
|
||||
return self.exam_questions.all().order_by("examquestiondetail__sort_order")
|
||||
|
||||
def order_questions(self):
|
||||
|
||||
Reference in New Issue
Block a user