fix: Ticket filtering current reviewer issue

pull/15924/head
feng 2025-08-25 14:34:06 +08:00 committed by feng626
parent 5c234fdd0c
commit 69de08bb5d
1 changed files with 2 additions and 1 deletions

View File

@ -23,7 +23,8 @@ class TicketFilter(BaseFilterSet):
def filter_assignees_id(self, queryset, name, value): def filter_assignees_id(self, queryset, name, value):
return queryset.filter( return queryset.filter(
ticket_steps__ticket_assignees__assignee__id=value ticket_steps__level=F('approval_step'),
ticket_steps__ticket_assignees__assignee_id=value
) )
def filter_relevant_asset(self, queryset, name, value): def filter_relevant_asset(self, queryset, name, value):