From b8c033cb8f9c0629b5ce79b55dae3606ca5cbfa4 Mon Sep 17 00:00:00 2001 From: Ross Date: Wed, 30 Mar 2022 22:26:27 +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 ba0abfaf..a69b03a8 100755 --- a/rapids/views.py +++ b/rapids/views.py @@ -749,7 +749,7 @@ def exam_scores_cid_user(request, pk, cid, passcode): questions = exam.exam_questions.all()#.prefetch_related("cid_user_answers", "answers") - cid_user_answers = list(CidUserAnswer.objects.filter(cid=cid, exam__id=pk)) + cid_user_answers = list(CidUserAnswer.objects.filter(cid=cid, exam__id=pk).prefetch_related("question")) cid_user_answers_q_map = {}