From bfdedb687abfbdf400387092762bb7081e8e8b56 Mon Sep 17 00:00:00 2001 From: Ryan Kaskel Date: Sat, 10 Nov 2012 15:48:46 +0000 Subject: [PATCH] Allow custom User models to use the UserAdmin's change password view. --- django/contrib/auth/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,