Skip to content

Commit

Permalink
Fix Document filter methods to use normal queryset filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanw committed Aug 29, 2023
1 parent d89c7eb commit 698235f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions froide/document/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ def __init__(self, *args, **kwargs):
self.filters["foirequest"].queryset = get_read_foirequest_queryset(request)

def filter_publicbody(self, qs, name, value):
return self.apply_filter(qs, name, publicbody=value)
return qs.filter(publicbody=value)

def filter_foirequest(self, qs, name, value):
return self.apply_filter(qs, name, foirequest=value)
return qs.filter(foirequest=value)


class PageDocumentFilterset(BaseSearchFilterSet):
Expand Down

0 comments on commit 698235f

Please sign in to comment.