ticket 增加查询条件

This commit is contained in:
曹前明 2022-09-22 12:05:33 +08:00
parent cc0845af97
commit 6b088e8111
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ class TicketFilterSet(filters.FilterSet):
class Meta:
model = Ticket
fields = ['workflow', 'state', 'act_state', 'start_create', 'end_create', 'category']
fields = ['workflow', 'state', 'act_state', 'start_create', 'end_create', 'category', 'script_run_last_result']
def filter_category(self, queryset, name, value):
user = self.request.user