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

This commit is contained in:
Ryan Kaskel 2012-11-10 15:48:46 +00:00
parent 04a7ea3283
commit bfdedb687a
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ class UserAdmin(admin.ModelAdmin):
adminForm = admin.helpers.AdminForm(form, fieldsets, {}) adminForm = admin.helpers.AdminForm(form, fieldsets, {})
context = { context = {
'title': _('Change password: %s') % escape(user.username), 'title': _('Change password: %s') % escape(user.get_username()),
'adminForm': adminForm, 'adminForm': adminForm,
'form_url': form_url, 'form_url': form_url,
'form': form, 'form': form,