Django south data migration – resolving a model that have the same names

I have multiple apps with the same model names and am doing a migration between them.

X.models.Order
Y.models.Order

Resolve them via string notation in south.

orm[‘X.Order’]

PS: Note that when creating the blank data migration, you will need to pass in the `–freeze` option to add the model that isn’t in the app the migration is created from.

For example…

python manage.py datamigration appX migrating_appY_data_to_appX --freeze appY

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s