start migrating from DRF to ninja

This commit is contained in:
Ross
2023-02-27 14:49:25 +00:00
parent 6b6d909038
commit fcf22fdd73
14 changed files with 215 additions and 49 deletions
+2 -2
View File
@@ -195,10 +195,10 @@ def generic_exam_json_edit(request):
if request.method == "POST":
question_type = request.POST.get("type")
if question_type == "rapid":
if question_type == "rapids":
Exam = RapidExam
Question = RapidQuestion
elif question_type == "long":
elif question_type == "longs":
Exam = LongExam
Question = LongQuestion
elif question_type == "anatomy":