This commit is contained in:
Ross
2021-02-28 16:31:48 +00:00
parent a455a4ab96
commit 307d83c015
+1 -1
View File
@@ -372,7 +372,7 @@ class ExamViews(View, LoginRequiredMixin):
question = get_object_or_404(self.Question, pk=sk) question = get_object_or_404(self.Question, pk=sk)
exam = get_object_or_404(self.Exam, pk=pk) exam = get_object_or_404(self.Exam, pk=pk)
if not question.active: if not exam.active:
raise Http404("No available exam") raise Http404("No available exam")
question_json_cache = cache.get("{}_question_json_{}".format(self.app_name, sk)) question_json_cache = cache.get("{}_question_json_{}".format(self.app_name, sk))