猿问

python django choice怎么输出

慕田峪9158850
浏览 990回答 2
2回答

手掌心

class ContactForm(forms.Form):     reason = forms.ChoiceField(choices=[("feature", "A feature"),                                         ("order", "An order")],                                widget=forms.RadioSelect)通过widget输出
随时随地看视频慕课网APP
我要回答