This commit is contained in:
Ross
2021-08-01 10:24:29 +01:00
parent ee32bec0bf
commit 01f00fc9c4
3 changed files with 17 additions and 16 deletions
+3 -3
View File
@@ -957,7 +957,7 @@ def question_json_unbased(request, pk):
"""
question = get_object_or_404(Long, pk=pk)
question_json = question.get_json(pk, based=False)
question_json = question.get_question_json(based=False)
return JsonResponse(question_json)
def question_json(request, pk):
@@ -973,7 +973,7 @@ def question_json(request, pk):
if os.path.isfile(path) and not question.recreate_json:
return redirect(url)
question_json = question.get_json(pk)
question_json = question.get_question_json()
question.recreate_json = False
question.save()
@@ -988,6 +988,6 @@ def question_json_recreate(request, pk):
question.recreate_json = True
question.save()
question.get_json(pk)
question.get_question_json()
return redirect("longs:question_detail", pk=pk)