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