admin(minor): fix sidebar disappearing when editing user

This commit is contained in:
Langhammer, Jens 2019-10-14 13:14:54 +02:00
parent 2ff1635696
commit a6dee2e8ed

View file

@ -36,6 +36,8 @@ class UserUpdateView(SuccessMessageMixin, AdminRequiredMixin, UpdateView):
model = User model = User
form_class = UserForm 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' template_name = 'generic/update.html'
success_url = reverse_lazy('passbook_admin:users') success_url = reverse_lazy('passbook_admin:users')
success_message = _('Successfully updated User') success_message = _('Successfully updated User')