.
This commit is contained in:
+3
-3
@@ -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)
|
||||
Reference in New Issue
Block a user