From a6dee2e8ed5b2ea2f6d2cf227c75eb3815153ad8 Mon Sep 17 00:00:00 2001 From: "Langhammer, Jens" Date: Mon, 14 Oct 2019 13:14:54 +0200 Subject: [PATCH] admin(minor): fix sidebar disappearing when editing user --- passbook/admin/views/users.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/passbook/admin/views/users.py b/passbook/admin/views/users.py index cc99fb7a7..0185d046e 100644 --- a/passbook/admin/views/users.py +++ b/passbook/admin/views/users.py @@ -36,6 +36,8 @@ class UserUpdateView(SuccessMessageMixin, AdminRequiredMixin, UpdateView): model = User form_class = UserForm + context_object_name = 'object' # By default the object's name + # is user which is used by other checks template_name = 'generic/update.html' success_url = reverse_lazy('passbook_admin:users') success_message = _('Successfully updated User')