回到顶部

阅读目录

HINT: ForeignKey(unique=True) is usually better served by a OneToOneField.

WARNINGS

HINT: ForeignKey(unique=True) is usually better served by a OneToOneField.

警告的意思

django model 里面 ForeignKe 字段设置为 unique=True,通常使用 OneToOneField 字段类型

Django 环境

2.2

^_^
请喝咖啡 ×

文章部分资料可能来源于网络,如有侵权请告知删除。谢谢!

前一篇: HINT: It seems you set a fixed date / time / datetime value as default for this field. This may not be what you want. If you want to have the current date as default, use `django.utils.timezone.now`
下一篇: Django simpleUI 修改 element-UI 引用的 index.js 和 index.css 链接 以及 base.html 的 vue 资源链接