Force maximum number of records with attribute in Django

前端 未结 0 624
说谎
说谎 2021-01-07 23:40

In Django, is there a "Djangonic" way to ensure a model doesn\'t have more than n records with a certain value for an attribute?

For instance,

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