Derive a Django 3.0 Choices class from existing Enum?

前端 未结 0 1167
一向
一向 2020-12-08 19:37

Django 3 brought a new way to define field choides: Field.choices. This brings some adavantages, e.g. enforces uniqueness and allows supplying human readable tags.

Un

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