Add alert to deleting multiple user domain roles

This commit is contained in:
Erin Song 2025-01-23 16:12:06 -08:00
parent ea31249ef8
commit 1c1a3f7eff
No known key found for this signature in database
3 changed files with 14 additions and 1 deletions

View file

@ -1370,7 +1370,7 @@ class UserDomainRoleAdmin(ListHeaderAdmin, ImportExportModelAdmin):
change_form_template = "django/admin/user_domain_role_change_form.html"
# Override for the delete confirmation page on the domain table (bulk delete action)
delete_selected_confirmation_template = "django/admin/user_domain_role_delete_confirmation.html"
delete_selected_confirmation_template = "django/admin/user_domain_role_delete_selected_confirmation.html"
# Fixes a bug where non-superusers are redirected to the main page
def delete_view(self, request, object_id, extra_context=None):