From 236a26934d38765a9365d2b17b942fcc017de72d Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 8 Mar 2021 12:37:07 +0000 Subject: [PATCH] . --- generic/views.py | 3 +++ longs/models.py | 1 + 2 files changed, 4 insertions(+) diff --git a/generic/views.py b/generic/views.py index c96c7dda..a0d5d5a9 100644 --- a/generic/views.py +++ b/generic/views.py @@ -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: diff --git a/longs/models.py b/longs/models.py index b47bdb15..80f08ceb 100644 --- a/longs/models.py +++ b/longs/models.py @@ -176,6 +176,7 @@ class Long(models.Model): with open(path, "w+") as f: f.write(""" + {{ "title": {}, "image_titles": {}, "type": "long",