Django model: NULLable field Django model: NULLable field django django

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.