Created
March 14, 2019 23:50
-
-
Save prescod/148e0f6cbb70f29be317b4507796c763 to your computer and use it in GitHub Desktop.
Weird filter attribute missing bug
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import django_filters | |
class Xyzzy: | |
myfilter = django_filters.rest_framework.ChoiceFilter() | |
print(myfilter) | |
print(Xyzzy.myfilter) | |
class Xyzzy(django_filters.rest_framework.FilterSet): | |
myfilter = django_filters.rest_framework.ChoiceFilter() | |
print(myfilter) | |
print(Xyzzy.myfilter) # this line crashes. Filter has been removed. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment