Merge pull request #511 from ryankask/username-password-admin
Allowed custom User models to use the UserAdmin's change password view. Fix #19056 (again).
This commit is contained in:
commit
9e11253497
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue