﻿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
19581	Duplicate IDs with CheckboxSelectMultiple if ID passed to constructor	lraucy	lraucy	"When a CheckboxSelectMultiple widget is instantiated with attrs passed to the constructor, render() produces invalid HTML:
all the input tags use the same html ID.

Exemple:

{{{
from django.forms.widgets import CheckboxSelectMultiple
print CheckboxSelectMultiple(attrs={'id': 'abc'}).render('letters', list('ac'), choices=zip(list('abc'), list('ABC')))
}}}

Result:
{{{
<ul>
<li><label><input checked=""checked"" type=""checkbox"" id=""abc"" value=""a"" name=""letters"" /> A</label></li>
<li><label><input type=""checkbox"" id=""abc"" value=""b"" name=""letters"" /> B</label></li>
<li><label><input checked=""checked"" type=""checkbox"" id=""abc"" value=""c"" name=""letters"" /> C</label></li>
</ul>
}}}
"	Bug	closed	Forms	dev	Normal	fixed	CheckboxSelectMultiple ID		Accepted	1	0	0	0	0	0
