integrityerror

django.db.utils.integrityerror: (1048, "Column 'phone' cannot be null")

1 背景: 模型表中字段为: phone = models.CharField(default='', max_length=64, verbose_name=u'电话', blank=True) 2 分析: 在保存模型实例时, ‘phone’被设置为空值. 但是该字段在数据库中被设置为(NOT N ......
quot integrityerror django Column cannot
共1篇  :1/1页 首页上一页1下一页尾页