Permalink
Browse files

Allow custom User models to use the UserAdmin's change password view.

  • Loading branch information...
1 parent 04a7ea3 commit bfdedb687abfbdf400387092762bb7081e8e8b56 @ryankask ryankask committed Nov 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/contrib/auth/admin.py
View
2 django/contrib/auth/admin.py
@@ -133,7 +133,7 @@ def user_change_password(self, request, id, form_url=''):
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,

0 comments on commit bfdedb6

Please sign in to comment.