Exclude models from makemigrations

379 views
Skip to first unread message

Thomas Brightwell

unread,
Nov 19, 2015, 7:07:21 AM11/19/15
to Django users
I'm working with django-salesforce and have salesforce models in my models.py, as well as local models which point to a Postgres database. I am excluding the salesforce models from the migrate command by using managed = False in a meta class on the models. However, makemigrations still generates migrations for the salesforce model which then never get run by migrate. That's ok but seems a little messy. Is there any way to prevent Django generating migrations for particular models? Have searched the django documentation (I think) pretty extensively for a method.
Reply all
Reply to author
Forward
0 new messages