summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Kaskel <dev@ryankaskel.com>2012-11-10 15:48:46 +0000
committerAymeric Augustin <aymeric.augustin@m4x.org>2012-11-30 16:24:51 +0100
commit0fc5878c5fdcc46df93e3faa6388c75b160bdd8e (patch)
tree930f99102ed3858f5d20c8692315b2b9e449a0d4
parent47c5b50d346237f30584ad9303dea8f6933ffae3 (diff)
[1.5.x] Allow custom User models to use the UserAdmin's change password view.
Backport of bfdedb687abfbdf400387092762bb7081e8e8b56.
-rw-r--r--django/contrib/auth/admin.py2
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,