Opened 4 months ago
Last modified 4 months ago
#36354 closed Cleanup/optimization
Remove unneeded JS from contrib.admin — at Initial Version
Reported by: | Fabian Braun | Owned by: | |
---|---|---|---|
Component: | contrib.admin | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Nick Pope, Mariusz Felisiak, David Bogar | Triage Stage: | Ready for checkin |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
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
andadmin/auth/user/add_form.html
to not load the JS file
Note:
See TracTickets
for help on using tickets.