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