﻿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
34837	"CheckboxSelectMultiple.attrs should accept more than ""id"" and ""class"""	HarryKane	nobody	"In a Form I want to modify the widget of a field, like

{{{
""field"": django.forms.CheckboxSelectMultiple(
  attrs={
    ""id"": ""my-id"",
    ""class"": ""foo""
    ""hx-get"": ""/some/path/,
    ""hx-target"": ""#target-id"",
    ""hx-trigger"": ""load"",
  }
)
}}}
but it just renders 
{{{
<div id=""my-id"" class=""foo"">...</div>
}}}
instead of 
{{{
<div id=""my-id"" class=""foo"" hx-get=""..."", hx-target=""..."", ""hx-trigger=""..."">...</div>
}}}

The reason seams to be, that the `django/forms/widets/multiple_input.html` renders only `id` and `class` 
{{{
{% with id=widget.attrs.id %}<div{% if id %} id=""{{ id }}""{% endif %}{% if widget.attrs.class %} class=""{{ widget.attrs.class }}""{% endif %}>{% for group, options, index in widget.optgroups %}{% if group %}
}}}
"	New feature	closed	Template system	4.2	Normal	wontfix			Unreviewed	0	0	0	0	0	0
