jazzband / django-waffle

A feature flipper for Django
https://waffle.readthedocs.io
BSD 3-Clause "New" or "Revised" License
1.13k stars 259 forks source link

Swappable flag model not actually swappable? #338

Open djsmedes opened 5 years ago

djsmedes commented 5 years ago

It seems that when using a custom flag model, the original model and its many-to-many tables are still created.

If I just manually go into the waffle migrations and add 'swappable': 'WAFFLE_FLAG_MODEL' into the options dict of the CreateModel(name='Flag', ... migration, then the standard flag model and its m2m tables are NOT created, as I want.

Obviously that is not how the fix should be made, because that would break existing implementations, but I don't know exactly how to properly do these sorts of migrations; hoping someone here has more expertise.