How do I keep select option after form validation has failed in Django?

后端 未结 0 1774
孤独总比滥情好
孤独总比滥情好 2021-01-20 21:10

After validation fails, I want to keep values entered by user, but have issues with dropdowns.

In models.py

GENDER = [
    (\'M\', \'Male\'),
    (\'F\         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题