This commit is contained in:
Ross
2022-04-06 16:53:57 +01:00
parent c1dd40031d
commit 647feb93f5
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -1201,7 +1201,7 @@ class GenericViewBase:
def question_review(self, request, pk):
"""
Return a json representation of the question when the exam is active
Return a json representation of the question when the exam is published
"""
if request.is_ajax():
exam = get_object_or_404(self.exam_object, pk=pk)
@@ -1214,7 +1214,7 @@ class GenericViewBase:
question = exam.exam_questions.all()[int(request.POST["question_number"])]
question_json = question.get_question_json(based=False)
question_json = question.get_question_json(based=False, feedback=True)
return JsonResponse(question_json)
return JsonResponse({"status": "error"})