📜  单选按钮 django - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:49.689000             🧑  作者: Mango

代码示例1
CHOICES=[('select1','select 1'),
         ('select2','select 2')]

like = forms.ChoiceField(choices=CHOICES, widget=forms.RadioSelect)