This commit is contained in:
Ross
2021-03-01 14:34:20 +00:00
parent 7640a0b8d3
commit 35cfb00ef1
+4 -4
View File
@@ -969,8 +969,8 @@ class ExamViewSet(viewsets.ModelViewSet):
serializer_class = ExamSerializer
def question_json(self, request, pk):
question = get_object_or_404(self.Question, pk=pk)
def question_json(request, pk):
question = get_object_or_404(Long, pk=pk)
#exam = get_object_or_404(self.Exam, pk=pk)
#if not exam.active:
@@ -989,8 +989,8 @@ def question_json(self, request, pk):
return JsonResponse(question_json)
@login_required
def question_json_recreate(self, request, pk):
question = get_object_or_404(self.Question, pk=pk)
def question_json_recreate(request, pk):
question = get_object_or_404(Long, pk=pk)
question.recreate_json = True
question.save()