﻿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
28672	CheckboxSelectMultiple does not correctly bind to the form attribute passed in when rendered outside its containing form	Dylan Young	nobody	"This means that POSTing the form does not submit the accompanying selected data.

This seems to be an issue with `attrs={'form': 'theform'}` not being passed through to the underlying checkbox inputs. 

SelectMultiple behaves as expected (submitting with the form). 

Minimal (inefficient) Example (must be included on a page with a form named 'theform' to see the problematic POST):


{{{
class UserSelectForm(Form):
    selected_users = MultipleChoiceField(
                    choices=[('ex', 'Example'), ('ex2', 'Example2')],
                    initial='ex',
                    widget=CheckboxSelectMultiple(attrs={'form': 'theform'}),
                    required=True)
}}}

Not sure if this is fixed in Django>1.8 as I have found no other reference to the bug. 
"	Bug	closed	Forms	1.8	Normal	invalid			Unreviewed	0	0	0	0	0	0
