perf: 优化资产节点搜索,查询全路径

pull/8606/head
halo 2022-07-16 20:44:32 +08:00 committed by 老广
parent 0eaca0c1cb
commit e1b3851be3
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ __all__ = [
class NodeViewSet(SuggestionMixin, OrgBulkModelViewSet):
model = Node
filterset_fields = ('value', 'key', 'id')
search_fields = ('value',)
search_fields = ('full_value',)
serializer_class = serializers.NodeSerializer
rbac_perms = {
'match': 'assets.match_node',