Update exam query in generic_exam_htmx to remove limit on results

This commit is contained in:
Ross
2025-10-20 21:16:47 +01:00
parent 66711f5c15
commit 5b8896e2b2
+1 -1
View File
@@ -585,7 +585,7 @@ def generic_exam_htmx(request):
except Exception: except Exception:
return HttpResponse("Unknown type", status=400) return HttpResponse("Unknown type", status=400)
exams = Exam.objects.filter(archive=False, exam_mode=True).order_by("name")[:200] exams = Exam.objects.filter(archive=False).order_by("name")
return render(request, "generic/partials/exam_select_fragment.html", {"exams": exams, "type": question_type}) return render(request, "generic/partials/exam_select_fragment.html", {"exams": exams, "type": question_type})
if request.method == "POST": if request.method == "POST":