﻿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
5665	Form instances with MultipleChoiceField share choices	cbrand@…	nobody	"If I create two instances of a form with a MultipleChoiceField, and then change the choices on one of them, the choices are also changed on the other :
{{{
In [2]: import django.newforms as forms

In [3]: class MyForm(forms.Form):
   ...:     x = forms.MultipleChoiceField()
   ...:     
   ...:     

In [4]: f = MyForm()

In [5]: f2 = MyForm()

In [6]: f2.as_p()
Out[6]: u'<p><label for=""id_x"">X:</label> <select multiple=""multiple"" name=""x"" id=""id_x"">\n</select></p>'

In [7]: f.fields['x'].choices = [('1','1')]

In [8]: f2.as_p()
Out[8]: u'<p><label for=""id_x"">X:</label> <select multiple=""multiple"" name=""x"" id=""id_x"">\n<option value=""1"">1</option>\n</select></p>'
}}}
Surely changing the choices in f should not affect f2 ?
"		closed	Forms	0.96		worksforme	MultipleChoiceField		Unreviewed	0	0	0	0	0	0
