diff --git a/passbook/admin/views/users.py b/passbook/admin/views/users.py index 33fa17f7b..867895a2c 100644 --- a/passbook/admin/views/users.py +++ b/passbook/admin/views/users.py @@ -67,6 +67,8 @@ class UserDeleteView( model = User permission_required = "passbook_core.delete_user" + # By default the object's name is user which is used by other checks + context_object_name = "object" template_name = "generic/delete.html" success_url = reverse_lazy("passbook_admin:users") success_message = _("Successfully deleted User")