Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit bfdedb687abfbdf400387092762bb7081e8e8b56 1 parent 04a7ea3
Ryan Kaskel authored November 10, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/contrib/auth/admin.py
2  django/contrib/auth/admin.py
@@ -133,7 +133,7 @@ def user_change_password(self, request, id, form_url=''):
133 133
         adminForm = admin.helpers.AdminForm(form, fieldsets, {})
134 134
 
135 135
         context = {
136  
-            'title': _('Change password: %s') % escape(user.username),
  136
+            'title': _('Change password: %s') % escape(user.get_username()),
137 137
             'adminForm': adminForm,
138 138
             'form_url': form_url,
139 139
             'form': form,

0 notes on commit bfdedb6

Please sign in to comment.
Something went wrong with that request. Please try again.