django Field选项中null和blank的区别
1 回答

眼眸繁星
TA贡献1873条经验 获得超9个赞
null:
If True, Django will store empty values as NULL in the database. Default
is False.
如果为True,空值将会被存储为NULL,默认为False。
blank:
If True, the field is allowed to be blank. Default is False.
如果为True,字段允许为空,默认不允许。
- 1 回答
- 0 关注
- 504 浏览
添加回答
举报
0/150
提交
取消