Django model: NULLable field
You should use
end = models.DateField(default=None, blank=True, null=True)
Basically blank
allows you to pass it a null value, but null
tells the database to accept null values.
You should use
end = models.DateField(default=None, blank=True, null=True)
Basically blank
allows you to pass it a null value, but null
tells the database to accept null values.