Fix syntax error in user group form and enhance logging in bulk add groups view
This commit is contained in:
+2
-2
@@ -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);
|
||||
|
||||
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user