#36354: Remove unneeded JS from contrib.admin
-------------------------------------+-------------------------------------
Reporter: Fabian Braun | Type:
| Cleanup/optimization
Status: new | Component:
| contrib.admin
Version: 5.2 | Severity: Normal
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
As part of ticket-34429 (
https://code.djangoproject.com/ticket/34429) JS
was added to the password change and user create forms to ensure that the
forms run on browsers that do not support the `:has()` CSS selector.
By now, all major browsers support the selector. The last one not
supporting it (Firefox 115 ESR) is now well beyond end of life. (See
discussion here:
https://github.com/django/django/pull/16942/files#r1427864863)
Steps to solve the issue:
* Remove `admin/js/unusable_password_field.js`
* Update `admin/auth/user/chamge_password.html` and
`admin/auth/user/add_form.html` to not load the JS file
--
Ticket URL: <
https://code.djangoproject.com/ticket/36354>
Django <
https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.