When I added
Meta option to my model in Django 1.7, the migrations barfed. Typical
migrate and then I got this error:
django.db.utils.IntegrityError: column "_order" contains null values
Shit. After hunting around I decided to just modify how the migration was done. I subclassed the
AlterOrderWithRespectTo migration and overrode the
database_forwards method. It's entirely copy-paste except for line 23. The new field created in lines 22-27 is not-null but no default is provided. Barf. I added line 23 and set a default at least for the migration.