admin: fix user object being overwritten when deleting a user

This commit is contained in:
Jens Langhammer 2020-02-18 21:35:06 +01:00
parent 4742ee1d93
commit 78cddca0d7

View file

@ -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")