-
-
Notifications
You must be signed in to change notification settings - Fork 259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto-create Custom Switch Models #456
Comments
Yes, please patch. |
👌 I'll get something up soon. Just noticed the same idea can be added to |
cole-jacobs
added a commit
to cole-jacobs/django-waffle
that referenced
this issue
Aug 23, 2022
Remove direct references to `Switch` and `Sample` in favor of `get_waffle_switch_model` and `get_waffle_sample_model`.
cole-jacobs
added a commit
to cole-jacobs/django-waffle
that referenced
this issue
Aug 23, 2022
Remove direct references to `Switch` and `Sample` in favor of `get_waffle_switch_model` and `get_waffle_sample_model`.
cole-jacobs
added a commit
to cole-jacobs/django-waffle
that referenced
this issue
Aug 24, 2022
Remove direct references to `Switch` and `Sample` in favor of `get_waffle_switch_model` and `get_waffle_sample_model`.
clintonb
pushed a commit
to cole-jacobs/django-waffle
that referenced
this issue
Aug 24, 2022
Remove direct references to `Switch` and `Sample` in favor of `get_waffle_switch_model` and `get_waffle_sample_model`.
clintonb
pushed a commit
that referenced
this issue
Aug 24, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Auto-creating custom switches fails with:
AttributeError: Manager isn't available; 'waffle.Switch' has been swapped for '<custom model>'
.In models.py, the Flag version of
is_active
callsget_waffle_flag_model
before its call toget_or_create
. I think a similar pattern should be used for switches and samples. Happy to submit a patch for this tonight.The text was updated successfully, but these errors were encountered: