[Fixed]-In a schemamigration, what should be the default value for a null=False field which I'm sure that won't have null values?

15👍

Just a thought: Since this is a foreign key, you can set the default value to a record you know will never have a referenced record, i.e. 0 or -1. Your db will raise an error if south will actually try to use this default.

👤Udi

Leave a comment