How do I iterate over the options of a SelectField in a template?

前端 未结 5 878
长情又很酷
长情又很酷 2020-12-23 20:47

I have a select field in the form and now I need to iterate over options in this field.

{{ form.myselect }} gives me this:


                        
    
提交评论

提交回复
热议问题