Commit 0fc5878c authored by Ryan Kaskel's avatar Ryan Kaskel Committed by Aymeric Augustin
Browse files

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

Backport of bfdedb68.
parent 47c5b50d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -133,7 +133,7 @@ class UserAdmin(admin.ModelAdmin):
        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,