diff --git a/backend/src/openarchiefbeheer/destruction/api/filtersets.py b/backend/src/openarchiefbeheer/destruction/api/filtersets.py index 80045d2b..2f696e72 100644 --- a/backend/src/openarchiefbeheer/destruction/api/filtersets.py +++ b/backend/src/openarchiefbeheer/destruction/api/filtersets.py @@ -6,14 +6,11 @@ CharFilter, ChoiceFilter, FilterSet, - ModelChoiceFilter, NumberFilter, OrderingFilter, UUIDFilter, ) -from openarchiefbeheer.accounts.models import User - from ..constants import InternalStatus, ListRole, ListStatus from ..models import ( DestructionList, @@ -100,10 +97,9 @@ def filter_order_review_ignored( class DestructionListFilterset(FilterSet): name = CharFilter(lookup_expr="icontains") status = ChoiceFilter(choices=ListStatus.choices) - author = ModelChoiceFilter(queryset=User.objects.record_managers()) - reviewer = ModelChoiceFilter( + author = NumberFilter() + reviewer = NumberFilter( field_name="assignees__user", - queryset=User.objects.reviewers(), method="filter_reviewer", ) assignee = NumberFilter(