fix: 修复节点创建时更新孩子full_value日志输出问题

pull/5283/head
Bai 2020-12-16 18:19:02 +08:00 committed by Jiangjie.Bai
parent 4f04a7d258
commit 4dcd8dd8dd
1 changed files with 2 additions and 0 deletions

View File

@ -491,6 +491,8 @@ class Node(OrgModelMixin, SomeNodesMixin, FamilyMixin, NodeAssetsMixin):
sort_key_func = lambda n: [int(i) for i in n.key.split(':')]
nodes_sorted = sorted(list(nodes), key=sort_key_func)
nodes_mapper = {n.key: n for n in nodes_sorted}
# 更新自己时自己的parent_key获取不到
nodes_mapper.update({self.parent_key: self.parent})
for node in nodes_sorted:
parent = nodes_mapper.get(node.parent_key)
if not parent: