Add debug logging for POST requests in generic_exam_htmx and update exam selection form to include checked selections
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user