﻿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
35273	AdminFileWidget renders two elements with the same ID	Johannes Maron	Johannes Maron	"The `AdminFileWidget` renders both the checkbox and file input with the same attributes, including the ID.
The template actually renders the ID attribute twice.

Both, two identical attributes on an element or two elements with the same ID are in violation with version of HTML.

See https://github.com/django/django/blob/eff21d8e7a1cb297aedf1c702668b590a1b618f3/django/contrib/admin/templates/admin/widgets/clearable_file_input.html#L3

This first appeared in Django 5.0.

My suggestion would be to avoid rendering `attrs` into the checkbox."	Bug	closed	contrib.admin	5.0	Release blocker	fixed		Johannes Maron Marcelo Galigniana David Smith	Ready for checkin	1	0	0	0	0	1
