From cbc5ef4570a25ff191b959836200d971f256f4a5 Mon Sep 17 00:00:00 2001 From: Ross Date: Wed, 30 Mar 2022 22:14:53 +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 24636edf..22f476da 100755 --- a/rapids/views.py +++ b/rapids/views.py @@ -747,7 +747,7 @@ def exam_scores_cid_user(request, pk, cid, passcode): # TODO:Need some kind of test for cid - questions = exam.exam_questions.all() + questions = exam.exam_questions.all().prefetch_related("cid_user_answers", "answers") answers_and_marks = [] answers_marks = []