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,查看更多内容
随时随地看视频慕课网APP