Skip to content

Commit

Permalink
💚 #554 - chore: fix broken CI check possibly due to mising permssion …
Browse files Browse the repository at this point in the history
…table
  • Loading branch information
svenvandescheur committed Dec 20, 2024
1 parent cb164c2 commit 06c06e7
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions backend/src/openarchiefbeheer/destruction/api/filtersets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 06c06e7

Please sign in to comment.