.
This commit is contained in:
+2
-1
@@ -1140,11 +1140,12 @@ def question_review(request, pk):
|
|||||||
exam = get_object_or_404(Exam, pk=pk)
|
exam = get_object_or_404(Exam, pk=pk)
|
||||||
|
|
||||||
print(request.POST["question_number"])
|
print(request.POST["question_number"])
|
||||||
|
print(type(request.POST["question_number"]))
|
||||||
|
|
||||||
if not exam.publish_results:
|
if not exam.publish_results:
|
||||||
raise Http404
|
raise Http404
|
||||||
|
|
||||||
question = exam.exam_questions.all()[request.POST["question_number"]]
|
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)
|
||||||
return JsonResponse(question_json)
|
return JsonResponse(question_json)
|
||||||
|
|||||||
Reference in New Issue
Block a user