#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.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/django-updates/0107019670cee796-37e5def5-e34f-4e08-a1af-b7624d21aa56-000000%40eu-central-1.amazonses.com.

Reply via email to