1đź‘Ť
When writing a datamigration, you can specify which apps “participate” in the datamigration with the --freeze
command line flag. If you have a glue
or core
app, as I like to call them, just add your datamigration there, and specify --freeze waffle
on the command line. You can then access the waffle models via orm['waffle.ModelNameHere']
.
This way, you don’t need to override anything. You might need to set depends_on
to get the migration order right.
👤sk1p
Source:stackexchange.com