Skip to content
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

Automatically creating switches no longer works in 2.4.0 #435

Closed
davidreynolds opened this issue Mar 28, 2022 · 3 comments · Fixed by #436
Closed

Automatically creating switches no longer works in 2.4.0 #435

davidreynolds opened this issue Mar 28, 2022 · 3 comments · Fixed by #436

Comments

@davidreynolds
Copy link

davidreynolds commented Mar 28, 2022

I have WAFFLE_CREATE_MISSING_SWITCHES=True in my django settings. Since updating to waffle 2.4.0 this feature is no longer working.

This is the exception being thrown:

Django.core.exceptions.FieldError: Invalid field name(s) for model Switch: 'everyone'.

This is the line triggering the exception:
https://github.com/django-waffle/django-waffle/blob/947195bcaff3cadabf005b7f00ba8dfee34b6b3f/waffle/models.py#L61

@weirdpipo
Copy link

@clintonb
Copy link
Collaborator

https://github.com/django-waffle/django-waffle/releases/tag/v2.4.1 has been released, and the offending code removed.

@honzakral
Copy link
Contributor

My apologies for the original PR that introduced this bug (and thank you, @clintonb, for a quick reaction!), I began work on a more comprehensive solution in #438. Since I am not using Switch or Sample models I would appreciate another set of eyes and ideas on how to properly test the change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants