diff options
| author | Ryan Kaskel <dev@ryankaskel.com> | 2012-11-10 15:48:46 +0000 |
|---|---|---|
| committer | Ryan Kaskel <dev@ryankaskel.com> | 2012-11-10 15:48:46 +0000 |
| commit | bfdedb687abfbdf400387092762bb7081e8e8b56 (patch) | |
| tree | ef4e1e7f5457fb78a7f6a0def16e536eaf1f4737 | |
| parent | 04a7ea3283318dbec84529b055548042a43e4f4d (diff) | |
Allow custom User models to use the UserAdmin's change password view.
| -rw-r--r-- | django/contrib/auth/admin.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/auth/admin.py b/django/contrib/auth/admin.py index 5f476f91c2..86442b9078 100644 --- a/django/contrib/auth/admin.py +++ b/django/contrib/auth/admin.py @@ -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, |
