fix question ordering through mark systems
This commit is contained in:
@@ -487,9 +487,7 @@ def test_exams(db, client):
|
||||
== "4 (1 unmarked)"
|
||||
)
|
||||
|
||||
for question in exam.exam_questions.all():
|
||||
print(question)
|
||||
print(question.get_compare_answers())
|
||||
for question in exam.get_questions():
|
||||
try:
|
||||
new_ans = Answer(
|
||||
question=question,
|
||||
|
||||
+1
-6
@@ -402,11 +402,6 @@ class RapidUpdate(RevisionMixin, AuthorOrCheckerRequiredMixin, UpdateView):
|
||||
return context
|
||||
|
||||
def form_valid(self, form):
|
||||
# save exam orders (there must be a better way to do this)
|
||||
# exam_orders = {}
|
||||
# for exam in self.object.exams.all():
|
||||
# exam_orders[exam] = list(exam.exam_questions.all())
|
||||
|
||||
self.object = form.save(commit=False)
|
||||
self.object.save()
|
||||
|
||||
@@ -591,7 +586,7 @@ def mark(request, exam_pk, sk, unmarked_exam_answers_only=True, review=False):
|
||||
elif not unmarked_exam_answers_only:
|
||||
mark_url = "rapids:mark_all"
|
||||
|
||||
questions = exam.exam_questions.all()
|
||||
questions = exam.get_questions()
|
||||
|
||||
n = sk
|
||||
|
||||
|
||||
Reference in New Issue
Block a user