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
Yep, I screwed up the PR. I see it now, you aren't necessarily missing an import statement, but something does need to change. Exploring in the shell:
In [1]: from django_filters import rest_framework as filters
In [2]: min_price = django_filters.NumberFilter(name="price", lookup_expr='gte')
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-2-d44ca3e674ce> in <module>()
----> 1 min_price = django_filters.NumberFilter(name="price", lookup_expr='gte')
NameError: name 'django_filters' is not defined
In [3]: min_price = filters.NumberFilter(name="price", lookup_expr='gte')
In Adding a FilterSet with filter class the code snippet appears to be missing an
import django_filters
The text was updated successfully, but these errors were encountered: