[patch] BooleanField should use False as default (unless provided)
When creating models,
BooleanFields which haven't explicitly been given a
default have to be specifically set or a SQL error will occur (because the default value will be ). Simple solution is to force the default to
False if no default is given.
# The model
check = models.BooleanField()
# then in code..
t = TestModel()
t.save() # will error, because the boolean field will return the default of '' instead of False
Change History (9)
BooleanField NullBooleanField added
Design decision needed