admin: fix user object being overwritten when deleting a user
This commit is contained in:
parent
4742ee1d93
commit
78cddca0d7
|
@ -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")
|
||||
|
|
Reference in a new issue