Allow custom User models to use the UserAdmin's change password view.
This commit is contained in:
parent
04a7ea3283
commit
bfdedb687a
|
@ -133,7 +133,7 @@ class UserAdmin(admin.ModelAdmin):
|
|||
adminForm = admin.helpers.AdminForm(form, fieldsets, {})
|
||||
|
||||
context = {
|
||||
'title': _('Change password: %s') % escape(user.username),
|
||||
'title': _('Change password: %s') % escape(user.get_username()),
|
||||
'adminForm': adminForm,
|
||||
'form_url': form_url,
|
||||
'form': form,
|
||||
|
|
Loading…
Reference in New Issue