Search code examples
pythondjangodjango-modelsdjango-south

Django South - turning a null=True field into a null=False field


My question is, what is the best practice for turning a null=True field into a null=False field using Django South. Specifically, I'm working with a ForeignKey.


Solution

  • You should write first a data migration: http://south.aeracode.org/docs/tutorial/part3.html and then make the schemamigration.