django type=radio 单选框

radio单选框form

RADIO_CHOICES = (
            ('none', "No Textbox"),         
            ('one', "One Textbox: "),       
    )
    aa = forms.ChoiceField(widget=forms.RadioSelect, choices=RADIO_CHOICES)

widget=forms.Select 下拉框

你可能感兴趣的:(django type=radio 单选框)