mirror of https://github.com/jumpserver/jumpserver
perf: 优化资产节点搜索,查询全路径
parent
0eaca0c1cb
commit
e1b3851be3
|
@ -43,7 +43,7 @@ __all__ = [
|
||||||
class NodeViewSet(SuggestionMixin, OrgBulkModelViewSet):
|
class NodeViewSet(SuggestionMixin, OrgBulkModelViewSet):
|
||||||
model = Node
|
model = Node
|
||||||
filterset_fields = ('value', 'key', 'id')
|
filterset_fields = ('value', 'key', 'id')
|
||||||
search_fields = ('value',)
|
search_fields = ('full_value',)
|
||||||
serializer_class = serializers.NodeSerializer
|
serializer_class = serializers.NodeSerializer
|
||||||
rbac_perms = {
|
rbac_perms = {
|
||||||
'match': 'assets.match_node',
|
'match': 'assets.match_node',
|
||||||
|
|
Loading…
Reference in New Issue