Ops
Ops
copied to clipboard
Published
20 hours ago
•
pythonzm
Reame
Issues
兄嘚,makemigrations时经常会有字段设置为不为空但没有默认值
Open
Runbacktoo
opened this issue 3 years ago
• 2 comments
May 14 '21 01:05
Runbacktoo
在model里设置一下就好了,可能之前遗漏了,把默认值设置为空字符串,最好不要设置为null
May 19 '21 01:05
pythonzm
好嘚,兄嘚
May 20 '21 08:05
Runbacktoo