This makes overriding user_change_password() and mangling permissions
easier because we have access to the object.
For example when you'd like to use the admin panel to allow users to
change their own passwords but not see the list of all users or anything
else.
--
Ticket URL: <https://code.djangoproject.com/ticket/29686>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* has_patch: 0 => 1
* type: New feature => Cleanup/optimization
* stage: Unreviewed => Accepted
Old description:
> Ticket for https://github.com/django/django/pull/10253.
>
> This makes overriding user_change_password() and mangling permissions
> easier because we have access to the object.
>
> For example when you'd like to use the admin panel to allow users to
> change their own passwords but not see the list of all users or anything
> else.
New description:
This makes overriding `user_change_password()` and mangling permissions
easier because we have access to the object.
For example when you'd like to use the admin panel to allow users to
change their own passwords but not see the list of all users or anything
else.
[https://github.com/django/django/pull/10253 PR]
--
--
Ticket URL: <https://code.djangoproject.com/ticket/29686#comment:1>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"53ebd4cb1397145d11a54e2c1dd83b63fc337097" 53ebd4cb]:
{{{
#!CommitTicketReference repository=""
revision="53ebd4cb1397145d11a54e2c1dd83b63fc337097"
Fixed #29686 -- Made UserAdmin.user_change_password() pass user to
has_change_permission().
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/29686#comment:2>