.
This commit is contained in:
+2
-2
@@ -185,7 +185,7 @@ def feedback_create(request, question_type, pk):
|
||||
|
||||
return JsonResponse({"success": False, "error": "Invalid exam type"})
|
||||
|
||||
def get_question_and_content_type(pk, question_type):
|
||||
def get_question_and_content_type(question_type):
|
||||
if question_type == "rapid":
|
||||
question = Rapid
|
||||
content_type = ContentType.objects.get(model="rapid")
|
||||
@@ -219,7 +219,7 @@ class AddQuestionNote(CreateView):
|
||||
pk = self.kwargs["pk"]
|
||||
question_type = self.kwargs["question_type"]
|
||||
|
||||
question, content_type = get_question_and_content_type(pk, question_type)
|
||||
question, content_type = get_question_and_content_type(question_type)
|
||||
|
||||
get_object_or_404(question, pk=pk)
|
||||
return { "content_type" : content_type,
|
||||
|
||||
Reference in New Issue
Block a user