Skip to content

Commit

Permalink
Merge pull request #511 from ryankask/username-password-admin
Browse files Browse the repository at this point in the history
Allowed custom User models to use the UserAdmin's change password view.

Fix #19056 (again).
  • Loading branch information
aaugustin committed Nov 22, 2012
2 parents 7b2d95e + bfdedb6 commit 9e11253
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/contrib/auth/admin.py
Expand Up @@ -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,
Expand Down

0 comments on commit 9e11253

Please sign in to comment.