.
This commit is contained in:
@@ -1137,6 +1137,10 @@ def question_review(request, pk, sk):
|
|||||||
Return a json representation of the question when the exam is active
|
Return a json representation of the question when the exam is active
|
||||||
"""
|
"""
|
||||||
exam = get_object_or_404(Exam, pk=pk)
|
exam = get_object_or_404(Exam, pk=pk)
|
||||||
|
|
||||||
|
if not exam.publish_results:
|
||||||
|
return Http404
|
||||||
|
|
||||||
question = exam.exam_questions.all()[sk]
|
question = exam.exam_questions.all()[sk]
|
||||||
|
|
||||||
question_json = question.get_question_json(based=False)
|
question_json = question.get_question_json(based=False)
|
||||||
|
|||||||
Reference in New Issue
Block a user