mirror of
https://github.com/django/django.git
synced 2025-04-22 00:04:43 +00:00
[1.5.x] Allow custom User models to use the UserAdmin's change password view.
Backport of bfdedb687abfbdf400387092762bb7081e8e8b56.
This commit is contained in:
parent
47c5b50d34
commit
0fc5878c5f
@ -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…
x
Reference in New Issue
Block a user