fix question ordering through mark systems

This commit is contained in:
Ross
2024-08-05 10:00:59 +01:00
parent a304c0b4dc
commit cff5a46e4c
14 changed files with 71 additions and 288 deletions
-11
View File
@@ -759,11 +759,6 @@ class CaseCollectionUpdate(RevisionMixin, AuthorOrCheckerRequiredMixin, UpdateVi
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()
@@ -2407,12 +2402,6 @@ def collection_scores_cid(request, pk):
cid_user_answers = CidReportAnswer.objects.filter(question__in=case_details)
# questions = exam.exam_questions.all().prefetch_related("answers")
# cid_user_answers = CidReportAnswer.objects.select_related("question").filter(
# question__in=questions, exam__id=pk
# )
cids = set()
case_list = list(cases)