diff --git a/errata/views.py b/errata/views.py index d0c04a350..2c040e54e 100644 --- a/errata/views.py +++ b/errata/views.py @@ -39,7 +39,7 @@ class ErrataView(ModelViewSet): serializer_class = ErrataSerializer http_method_names = ['get', 'post', 'head'] filter_backends = (DjangoFilterBackend, OrderingFilter) - filter_class = ErrataFilter + filterset_class = ErrataFilter ordering_fields = ('id', 'resolution_date', 'created', 'modified', ) diff --git a/requirements/base.txt b/requirements/base.txt index 434643371..94257972a 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -4,6 +4,7 @@ django==4.1.7 django-admin-rangefilter==0.8.4 django-crontab==0.7.1 django-extensions==3.2.1 +django-filter==22.1 django-import-export==2.8.0 django-libsass==0.9 django-rest-auth==0.9.5