Skip to content

Commit

Permalink
👽 change filter inspector because 'django-filter' has changed its API…
Browse files Browse the repository at this point in the history
… in 22.1 version
  • Loading branch information
annashamray committed Sep 1, 2023
1 parent 41f8613 commit def1931
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vng_api_common/inspectors/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def get_filter_parameters(self, filter_backend):

if fields:
queryset = self.view.get_queryset()
filter_class = filter_backend.get_filter_class(self.view, queryset)
filter_class = filter_backend.get_filterset_class(self.view, queryset)

for parameter in fields:
filter_field = filter_class.base_filters[parameter.name]
Expand Down

0 comments on commit def1931

Please sign in to comment.