Browse Source

perf: 修改命令执行区分组织

pull/8096/head
ibuler 3 years ago committed by Jiangjie.Bai
parent
commit
e4b0ab6a45
  1. 1
      apps/perms/api/asset/user_permission/user_permission_nodes_with_assets.py

1
apps/perms/api/asset/user_permission/user_permission_nodes_with_assets.py

@ -65,7 +65,6 @@ class MyGrantedNodesWithAssetsAsTreeApi(SerializeToTreeNodeMixin, ListAPIView):
all_assets = all_assets.annotate(parent_key=F('nodes__key')).prefetch_related('platform') all_assets = all_assets.annotate(parent_key=F('nodes__key')).prefetch_related('platform')
data.extend(self.serialize_assets(all_assets)) data.extend(self.serialize_assets(all_assets))
@tmp_to_root_org()
def list(self, request: Request, *args, **kwargs): def list(self, request: Request, *args, **kwargs):
""" """
此算法依赖 UserGrantedMappingNode 此算法依赖 UserGrantedMappingNode

Loading…
Cancel
Save