Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Merged
merged 1 commit into from

2 participants

@ryankask

This patch allows users to subclass UserAdmin and take advantage of the change password view.

@aaugustin aaugustin merged commit 9e11253 into django:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
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,
Something went wrong with that request. Please try again.