- old_app -- App that holds the old model
- new_app -- App that holds the new model
- others -- Placeholder for all apps that reference this model with a FK, O2O, M2M field or by inheriting from it (not for abstract model inheritance)
A migration with AlterModelTable('old_app_mymodel', 'new_app_mymodel')
A migration with SeparateDatabaseAndState(state_operations=[CreateModel('MyModel', fields=[...])])
. Copy-paste and adjust the CreateModel operation and AddField operations into the state_operations
attribute.
Point incoming ForeignKeys to the new table with AlterField('somemodel', 'somefield', ForeignKey('new_app.MyModel'))