add option to refresh json cache
This commit is contained in:
@@ -497,6 +497,14 @@ def exam_json(request, pk):
|
||||
|
||||
return JsonResponse(exam_json)
|
||||
|
||||
@login_required
|
||||
def exam_json_recreate(request, pk):
|
||||
exam = get_object_or_404(Exam, pk=pk)
|
||||
|
||||
exam.recreate_json = True
|
||||
exam.save()
|
||||
|
||||
return redirect("anatomy:exam_overview")
|
||||
|
||||
@login_required
|
||||
def exam_scores_cid(request, pk):
|
||||
|
||||
Reference in New Issue
Block a user