📜  非空约束失败 django - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:14.128000             🧑  作者: Mango

代码示例1
You must create a migration, where you will specify default value for a new field, since you don't want it to be null. If null is not required, simply add null=True and create and run migration.