From bb0caab8f2aeb590f9e1919d4c8347d88e26ace2 Mon Sep 17 00:00:00 2001 From: Ross Date: Wed, 30 Mar 2022 21:31:49 +0100 Subject: [PATCH] . --- rapids/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rapids/views.py b/rapids/views.py index aa01fcf2..c6ce014a 100755 --- a/rapids/views.py +++ b/rapids/views.py @@ -601,7 +601,7 @@ def exam_scores_cid2(request, pk): ans_by_question = defaultdict(dict) unmarked = set() - questions = exam.exam_questions.all() + questions = exam.exam_questions.all().prefectch_related("answers") cid_user_answers = CidUserAnswer.objects.filter(question__in=questions, exam__id=pk)