Reputation: 1823
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
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