bosco-
bosco-

Reputation: 1823

south: how to ignore a changed model while creating a migration for an app

I have two changed models in an app, but i want to create a migration for only one model while ignoring the other, is this possible using a variation of the

./manage.py schemamigration app --auto 

command?

Upvotes: 1

Views: 394

Answers (1)

catherine
catherine

Reputation: 22808

There are many ways to create migration. But I will only defined two ways.

 //migrate the changes of all models of the app
 ./manage.py schemamigration app --auto

 //migrate only the changes of the given model or 1 model
 python manage.py schemamigration app_name extend_modelname --auto

Upvotes: 2

Related Questions