This commit is contained in:
Ross
2021-04-18 12:03:07 +01:00
parent 564167184b
commit 8918f1cd5b
4 changed files with 43 additions and 1 deletions
+3
View File
@@ -369,6 +369,9 @@ class ExamViews(View, LoginRequiredMixin):
return JsonResponse({"success": False, "error": "Invalid data"})
def exam_json_unbased(self, request, pk):
"""
No (file based) caching is enabled for unbased exams
"""
exam = get_object_or_404(self.Exam, pk=pk)
if not exam.active: