x2
This commit is contained in:
+1
-1
@@ -465,7 +465,7 @@ def exam_json(request, pk):
|
|||||||
exam_json_cache = cache.get("exam_json_{}".format(pk))
|
exam_json_cache = cache.get("exam_json_{}".format(pk))
|
||||||
|
|
||||||
if exam_json_cache is not None and not exam.recreate_json:
|
if exam_json_cache is not None and not exam.recreate_json:
|
||||||
return JsonResponse(exam_json)
|
return JsonResponse(exam_json_cache)
|
||||||
|
|
||||||
|
|
||||||
questions = exam.exam_questions.all()
|
questions = exam.exam_questions.all()
|
||||||
|
|||||||
Reference in New Issue
Block a user