Skip to content

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

Open

Description

@Runbacktoo
No description provided.

Activity

  1. pythonzm commented on May 19, 2021

    @pythonzm
    Owner

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

  2. Runbacktoo commented on May 20, 2021

    @Runbacktoo
    Author

    好嘚,兄嘚

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions