.
This commit is contained in:
@@ -384,6 +384,9 @@ class ExamViews(View, LoginRequiredMixin):
|
||||
if not exam.active:
|
||||
raise Http404("No available exam")
|
||||
|
||||
return redirect("{}:question_json".format(self.app_name), pk=sk)
|
||||
redirect()
|
||||
|
||||
question_json_cache = cache.get("{}_question_json_{}".format(self.app_name, sk))
|
||||
|
||||
if question_json_cache is not None and not question.recreate_json:
|
||||
|
||||
@@ -176,6 +176,7 @@ class Long(models.Model):
|
||||
with open(path, "w+") as f:
|
||||
|
||||
f.write("""
|
||||
{{
|
||||
"title": {},
|
||||
"image_titles": {},
|
||||
"type": "long",
|
||||
|
||||
Reference in New Issue
Block a user