Fix syntax error in user group form and enhance logging in bulk add groups view

This commit is contained in:
Ross
2025-11-12 22:06:09 +00:00
parent 2e551d411a
commit 5cca1b079a
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -673,12 +673,12 @@ class UserUserGroupForm(ModelForm):
// Wire up the "Add all results" button if present
const addAllBtn = results.parentElement.querySelector('.user-add-all-btn');
if (addAllBtn) {
if (addAllBtn) {{
addAllBtn.addEventListener('click', function(e) {{
e.preventDefault();
addAllFromResults(widgetFieldName);
}});
}
}}
window.addUserToField = function(fieldName, id, text, grade) {{
const sel = document.getElementById('id_' + fieldName);
+1
View File
@@ -390,6 +390,7 @@ def exam_collection_bulk_add_groups(request, collection_id):
collection = get_object_or_404(ExamCollection, pk=collection_id)
logger.debug(f"exam_collection_bulk_add_groups called with method={request.method} by user={request.user.username}")
logger.debug(request)
if request.method == "GET":