mirror of
https://github.com/django/django.git
synced 2025-05-28 09:46:29 +00:00
This change ensures that the "Reset password" button in the admin is shown only when the user has the necessary permission to perform a password change operation. It reuses the password hashing rendering logic in `display_for_field` to show the appropriate read-only widget for users with view-only access.