.
This commit is contained in:
+2
-2
@@ -997,7 +997,7 @@ def question_json(request, pk):
|
|||||||
|
|
||||||
if question_json_cache is not None and not question.recreate_json:
|
if question_json_cache is not None and not question.recreate_json:
|
||||||
#question_json_cache["cached"] = True
|
#question_json_cache["cached"] = True
|
||||||
return question_json_cache
|
return redirect(question_json_cache)
|
||||||
|
|
||||||
question_json = question.get_json(pk)
|
question_json = question.get_json(pk)
|
||||||
|
|
||||||
@@ -1006,7 +1006,7 @@ def question_json(request, pk):
|
|||||||
question.recreate_json = False
|
question.recreate_json = False
|
||||||
question.save()
|
question.save()
|
||||||
|
|
||||||
return question_json
|
return redirect(question_json)
|
||||||
|
|
||||||
@login_required
|
@login_required
|
||||||
def question_json_recreate(request, pk):
|
def question_json_recreate(request, pk):
|
||||||
|
|||||||
Reference in New Issue
Block a user