django-waffle icon indicating copy to clipboard operation
django-waffle copied to clipboard

Swappable flag model not actually swappable?

Open djsmedes opened this issue 5 years ago • 0 comments

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.

djsmedes avatar Jun 21 '19 15:06 djsmedes