Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

兄嘚,makemigrations时经常会有字段设置为不为空但没有默认值 #100

Open
Runbacktoo opened this issue May 14, 2021 · 2 comments

Comments

@Runbacktoo
Copy link

No description provided.

@pythonzm
Copy link
Owner

在model里设置一下就好了,可能之前遗漏了,把默认值设置为空字符串,最好不要设置为null

@Runbacktoo
Copy link
Author

好嘚,兄嘚

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants