﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
36354	Remove unneeded JS from contrib.admin password forms	Fabian Braun		"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 - https://support.mozilla.org/en-US/kb/firefox-users-windows-7-8-and-81-moving-extended-support#:~:text=Mozilla%20is%20providing%20critical%20security,supported%20version%20of%20Microsoft%20Windows.) is reaching end-of support in August 2025, i.e. before the next major Django release. 

(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



"	Cleanup/optimization	new	contrib.admin	5.2	Normal				Unreviewed	0	0	0	0	1	0
