You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have added a custom waffle flag which inherits from the AbstractBaseFlag and doesn't have a users field. After upgrading waffle to a newer version I get the following error during startup:
Traceback (most recent call last):
File "manage.py", line 30, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.8/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.8/site-packages/django/core/management/__init__.py", line 377, in execute
django.setup()
File "/usr/local/lib/python3.8/site-packages/django/__init__.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/usr/local/lib/python3.8/site-packages/django/apps/registry.py", line 122, in populate
app_config.ready()
File "/usr/local/lib/python3.8/site-packages/waffle/apps.py", line 9, in ready
import waffle.signals # noqa: F401
File "/usr/local/lib/python3.8/site-packages/waffle/signals.py", line 7, in <module>
@receiver(m2m_changed, sender=get_waffle_flag_model().users.through)
AttributeError: type object 'Flag' has no attribute 'users'
The docs say that the Flag needs to be a subclass of AbstractBaseFlag yet the signal receiver is accessing the users field which is only found in AbstractUserFlag. I'm guessing this is the breaking commit: afb2660. How should I go about this problem?
The text was updated successfully, but these errors were encountered:
I have added a custom waffle flag which inherits from the
AbstractBaseFlag
and doesn't have ausers
field. After upgrading waffle to a newer version I get the following error during startup:The docs say that the Flag needs to be a subclass of
AbstractBaseFlag
yet the signal receiver is accessing theusers
field which is only found inAbstractUserFlag
. I'm guessing this is the breaking commit: afb2660. How should I go about this problem?The text was updated successfully, but these errors were encountered: