Django 3 CheckConstraints m2m field

后端 未结 0 955
终归单人心
终归单人心 2021-02-05 04:58

I would like to add database constraints to my model, that require at least one of its fields to be not-null. When checking the m2m field, I get a FieldError: Cannot resolve key

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