mirror of
https://github.com/jumpserver/jumpserver.git
synced 2026-01-13 11:34:14 +00:00
[Update] 优化协议
This commit is contained in:
@@ -130,7 +130,7 @@ class NodeChildrenAsTreeApi(generics.ListAPIView):
|
||||
include_assets = self.request.query_params.get('assets', '0') == '1'
|
||||
if not include_assets:
|
||||
return queryset
|
||||
assets = self.node.get_assets().prefetch_related("protocols").only(
|
||||
assets = self.node.get_assets().only(
|
||||
"id", "hostname", "ip", 'platform', "os", "org_id",
|
||||
)
|
||||
for asset in assets:
|
||||
|
||||
Reference in New Issue
Block a user