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