Search code examples
djangodjango-modelsmodeldefaultnotnull

How can Django be configured not to default fields to not null?


How can Django be configured not to default fields to not null?

Django defaults all fields created to NOT NULL. Can it be configured to do the opposite, except in the obvious case of key fields?


Solution

  • null=True, blank=True, docs, docs, docs