Add debug logging for POST requests in generic_exam_htmx and update exam selection form to include checked selections

This commit is contained in:
Ross
2025-10-20 21:20:32 +01:00
parent ae644f9c03
commit bad0d400a7
2 changed files with 5 additions and 1 deletions
+1
View File
@@ -599,6 +599,7 @@ def generic_exam_htmx(request):
return render(request, "generic/partials/exam_select_fragment.html", {"exams": exams, "type": question_type})
if request.method == "POST":
logger.debug(f"generic_exam_htmx POST: {request.POST}")
question_type = request.POST.get("type")
if not question_type:
return JsonResponse({"status": "error", "message": "missing type"}, status=400)