Open TAnas0 opened 2 years ago
The documentation for the custom flag shows an example and it might lead to errors and confusion: https://waffle.readthedocs.io/en/stable/types/flag.html#custom-flag-models
The imported get_cache method is not used and the cache variable referenced is undefined.
get_cache
cache
Is there a missing cache = get_cache() somewhere? Should be placed outside of the class or defined as a class attribute?
cache = get_cache()
The documentation for the custom flag shows an example and it might lead to errors and confusion: https://waffle.readthedocs.io/en/stable/types/flag.html#custom-flag-models
The imported
get_cache
method is not used and thecache
variable referenced is undefined.Is there a missing
cache = get_cache()
somewhere? Should be placed outside of the class or defined as a class attribute?