django create model null value code example
Example 1: make column nullable django
field = models.DateField(null=True)
Example 2: blank=true
blank determines whether the field will be required in forms. This includes the admin and your custom forms. If blank=True then the field will not be required, whereas if it's False the field cannot be blank.