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 = {}