blank=True null=True
So that’s a long way of saying this: if you want to allow blank values in a date field (e.g., DateField, TimeField,DateTimeField) or numeric field (e.g., IntegerField, DecimalField, FloatField), you’ll need to use bothnull=True and blank=True.
No comments:
Post a Comment