db.models.Field.blank

Field.blank

If True, the field is allowed to be blank. Default is False.

Note that this is different than null. null is purely database-related, whereas blank is validation-related. If a field has blank=True, form validation will allow entry of an empty value. If a field has blank=False, the field will be required.

doc_Django
2016-10-09 18:35:21
Comments
Leave a Comment

Please login to continue.