how can I declare initial value of radio button?
form.py
YESNO = ( (\'Yes\',\'Yes\'), (\'No\', \'No\'), ) class MyForm(forms.Form): like = for
this is the way it works initial='N' which is the first item in the tuple. Choices=(('Y','Yes'), ('N','No') rs_field = forms.ChoiceField(choices=Choices),initial='N', widget=forms.RadioSelect)
initial='N'
Choices=(('Y','Yes'), ('N','No') rs_field = forms.ChoiceField(choices=Choices),initial='N', widget=forms.RadioSelect)