Django model enum field creates new migrations every time makemigrations is run, even though unchanged

前端 未结 1 483
说谎
说谎 2021-01-21 02:06

As part of a user preferences model:

    DAILY = \"d\"
    WEEKLY = \"w\"
    FORTNIGHTLY = \"f\"
    MONTHLY = \"m\"
    DISABLE = \"x\"
    EMAIL_FREQUENCY_CHO         


        
相关标签:
1条回答
  • 2021-01-21 02:28

    EMAIL_FREQUENCY_CHOICES is defined as a set. It should be a list or tuple.

    0 讨论(0)
提交回复
热议问题