mirror of https://github.com/jumpserver/jumpserver
[Update] 修复 工单按用户搜索无效的问题 (#3540)
parent
e1919d0a62
commit
907703d911
|
@ -13,7 +13,7 @@ class TicketViewSet(mixins.TicketMixin, viewsets.ModelViewSet):
|
|||
serializer_class = serializers.TicketSerializer
|
||||
queryset = models.Ticket.objects.all()
|
||||
permission_classes = (IsValidUser,)
|
||||
filter_fields = ['status', 'title', 'action']
|
||||
filter_fields = ['status', 'title', 'action', 'user_display']
|
||||
search_fields = ['user_display', 'title']
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue