From c31b169cae2187f32dabc6021014593d33c13a6b Mon Sep 17 00:00:00 2001 From: BaiJiangJie Date: Thu, 4 Apr 2019 12:17:53 +0800 Subject: [PATCH] =?UTF-8?q?[Bugfix]=20=E4=BF=AE=E5=A4=8D=E8=B5=84=E4=BA=A7?= =?UTF-8?q?=E5=AF=B9=E8=B1=A1=E8=8E=B7=E5=8F=96=E6=89=80=E6=9C=89=E8=8A=82?= =?UTF-8?q?=E7=82=B9=E6=97=B6=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/assets/models/asset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/assets/models/asset.py b/apps/assets/models/asset.py index 5ad9830f3..078221e85 100644 --- a/apps/assets/models/asset.py +++ b/apps/assets/models/asset.py @@ -153,7 +153,7 @@ class Asset(OrgModelMixin): nodes = [] for node in self.get_nodes(): _nodes = node.get_ancestor(with_self=True) - _nodes.append(_nodes) + nodes.append(_nodes) if flat: nodes = list(reduce(lambda x, y: set(x) | set(y), nodes)) return nodes