perf: Ticket filter assignee_id

pull/14625/head
feng 2024-12-09 16:54:36 +08:00 committed by ZhaoJiSen
parent 817957dbac
commit d9031ae02b
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):
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):