.
This commit is contained in:
+5
-1
@@ -367,9 +367,13 @@ class ExamViews(View, LoginRequiredMixin):
|
||||
|
||||
questions = exam.exam_questions.all()
|
||||
|
||||
question_unmarked_map = []
|
||||
for q in questions:
|
||||
question_unmarked_map.append((q, q.get_unmarked_answer_count()))
|
||||
|
||||
# TODO: fix showing unmarked answer count from other exams...
|
||||
return render(
|
||||
request, "{}/mark_overview.html".format(self.app_name), {"exam": exam, "questions": questions}
|
||||
request, "{}/mark_overview.html".format(self.app_name), {"exam": exam, "question_unmarked_map": question_unmarked_map}
|
||||
)
|
||||
|
||||
@method_decorator(login_required)
|
||||
|
||||
Reference in New Issue
Block a user