django bool code example
Example: boolean field django
BooleanField
class BooleanField(**options)
A true/false field.
The default form widget for this field is CheckboxInput, or NullBooleanSelect if null=True.
The default value of BooleanField is None when Field.default isn’t defined.