1👍
✅
This is not supported directly in the admin interface.
If you’re talking about editing django.contrib.auth.models.User
then I’d recommend just using a regular view instead of the admin interface. You may be able to inject custom validation to check that the request.user == user
but it’s hacky.
If you’re talking about editing a UserProfile object then it’s easier to add custom validation to the admin form to check for authorization.
Source:stackexchange.com