initial value in radio button django form

后端 未结 4 1123
暗喜
暗喜 2021-02-19 19:28

how can I declare initial value of radio button?

form.py

YESNO = (
    (\'Yes\',\'Yes\'),
    (\'No\', \'No\'),
)
class MyForm(forms.Form):
   like = for         


        
4条回答
提交回复
热议问题