Pages

Saturday, March 16, 2013

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., DateFieldTimeField,DateTimeField) or numeric field (e.g., IntegerFieldDecimalFieldFloatField), you’ll need to use bothnull=True and blank=True.

No comments:

Post a Comment