Hi Saranya,
Please try in TestForm
> self.fields['t'].fields[1].widget.choices = ((1,1),)
Hope it helps
On Fri, Oct 14, 2016 at 9:31 AM, saranya k
wrote:
> I want to set choices for ChoiceField in MultiValueField in form init. But
> its not getting updated.
> class TestField(forms.MultiValueF
I want to set choices for ChoiceField in MultiValueField in form init. But its
not getting updated.
class TestField(forms.MultiValueField):
def __init__(self,*args, **kwargs):
error_messages = {
'incomplete': 'incomplete',
}
a = forms.ChoiceField(choices=
2 matches
Mail list logo