[Django]-Django ForeignKey null = true

4👍

It causes no changes to the schema (just clarifying it only creates tables, doesn’t modify), but upon syncdb, would create SQL statements without NOT NULL.

You can check the SQL output of the table definitions via python manage.py sqlall my_app and see for yourself!

Leave a comment