40
If you specify null=True on the model field then the value will be stored as NULL in the database if the user does not provide a value.
- [Django]-How does django handle multiple memcached servers?
- [Django]-Django MEDIA_URL and MEDIA_ROOT
- [Django]-How to obtain a QuerySet of all rows, with specific fields for each one of them?
26
blank=True
allows you to input nothing (i.e""
,None
) and keep it empty.null=True
means the database row is allowed to beNULL
.default=None
sets the field toNone
if no other value is given.
- [Django]-Django Admin Form for Many to many relationship
- [Django]-"gettext()" vs "gettext_lazy()" in Django
- [Django]-Group by Foreign Key and show related items – Django
Source:stackexchange.com