[Update] 修复 工单按用户搜索无效的问题 (#3540)

pull/3550/head
八千流 5 years ago committed by 老广
parent e1919d0a62
commit 907703d911

@ -13,7 +13,7 @@ class TicketViewSet(mixins.TicketMixin, viewsets.ModelViewSet):
serializer_class = serializers.TicketSerializer serializer_class = serializers.TicketSerializer
queryset = models.Ticket.objects.all() queryset = models.Ticket.objects.all()
permission_classes = (IsValidUser,) permission_classes = (IsValidUser,)
filter_fields = ['status', 'title', 'action'] filter_fields = ['status', 'title', 'action', 'user_display']
search_fields = ['user_display', 'title'] search_fields = ['user_display', 'title']

Loading…
Cancel
Save