.
This commit is contained in:
+2
-2
@@ -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"})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user