From 2ab972640774fd4f892737fb858dd84765f28612 Mon Sep 17 00:00:00 2001 From: Ross Date: Sat, 26 Jun 2021 11:33:18 +0100 Subject: [PATCH] . --- generic/views.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/generic/views.py b/generic/views.py index 1cb8878f..e6ba3610 100644 --- a/generic/views.py +++ b/generic/views.py @@ -406,6 +406,9 @@ class ExamViews(View, LoginRequiredMixin): if self.question_type == "long": h = {} for question in exam.exam_questions.all(): + # Generate json if needed + if question.json_creation_time is None: + question.get_json(question.pk) h[question.pk] = question.json_creation_time.isoformat() obj["multi_question_json"] = h active_exams["exams"].append( obj )