.
This commit is contained in:
@@ -988,6 +988,14 @@ class ExamViewSet(viewsets.ModelViewSet):
|
||||
queryset = Exam.objects.all().order_by('name')
|
||||
serializer_class = ExamSerializer
|
||||
|
||||
def question_json_unbased(self, request, pk):
|
||||
"""
|
||||
No (file based) caching is enabled for unbased quesitons
|
||||
"""
|
||||
question = get_object_or_404(self.Exam, pk=pk)
|
||||
|
||||
question_json = question.get_json(pk, based=False)
|
||||
return JsonResponse(question_json)
|
||||
|
||||
def question_json(request, pk):
|
||||
question = get_object_or_404(Long, pk=pk)
|
||||
|
||||
Reference in New Issue
Block a user