Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[1.5.x] Allow custom User models to use the UserAdmin's change passwo…

…rd view.

Backport of bfdedb6.
  • Loading branch information...
commit 0fc5878c5fdcc46df93e3faa6388c75b160bdd8e 1 parent 47c5b50
@ryankask ryankask authored aaugustin committed
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 0fc5878

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