.
This commit is contained in:
+10
-1
@@ -986,4 +986,13 @@ def question_json(self, request, pk):
|
||||
|
||||
cache.set("{}_question_json_{}".format("longs", pk), question_json, 3600)
|
||||
|
||||
return JsonResponse(question_json)
|
||||
return JsonResponse(question_json)
|
||||
|
||||
@login_required
|
||||
def exam_json_recreate(self, request, pk):
|
||||
question = get_object_or_404(self.Question, pk=pk)
|
||||
|
||||
question.recreate_json = True
|
||||
question.save()
|
||||
|
||||
return redirect("longs:question_detail", pk=pk)
|
||||
Reference in New Issue
Block a user