简体   繁体   中英

Django bool field explain default is False and null is True

What does the above field specify for Django. models.BooleanField(default=False, null=True) . Does this mean Default value is False / null.

It means the default value for that field is False. But also it can be empty without any values

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM