diff --git a/longs/templates/longs/exam_overview.html b/longs/templates/longs/exam_overview.html index 6671b7cd..6e426ccb 100644 --- a/longs/templates/longs/exam_overview.html +++ b/longs/templates/longs/exam_overview.html @@ -54,6 +54,7 @@
JSON creation time: {{exam.json_creation_time}} ({{exam.json_creation_time|date:"c"}}), JSON creation id: {{exam.exam_json_id}} + {% if question.recreate_json %}[JSON out of date]{% endif %}
JSON Refresh JSON cache diff --git a/longs/templates/longs/long_display_block.html b/longs/templates/longs/long_display_block.html index ecb78eea..3c4e8075 100755 --- a/longs/templates/longs/long_display_block.html +++ b/longs/templates/longs/long_display_block.html @@ -59,6 +59,7 @@
JSON creation time: {{question.json_creation_time}} ({{question.json_creation_time|date:"c"}}), JSON creation id: {{question.question_json_id}} + {% if question.recreate_json %}[JSON out of date]{% endif %}
JSON Refresh JSON cache \ No newline at end of file diff --git a/longs/views.py b/longs/views.py index cef9b743..82acfe76 100755 --- a/longs/views.py +++ b/longs/views.py @@ -990,9 +990,7 @@ def question_json_recreate(request, pk): # We also have to invalidate any exams - print("Start") for exam in question.exams.all(): - print(exam) exam.recreate_json = True exam.save()