Commit 1256944b authored by 八千流's avatar 八千流 Committed by BaiJiangJie

[Bugfix] 修复删除节点bug (#2883)

parent 218e4253
......@@ -406,7 +406,7 @@ class Node(OrgModelMixin, FamilyMixin, FullValueMixin, AssetsAmountMixin):
return tree_node
def delete(self, using=None, keep_parents=False):
if self.children or self.assets.get_assets():
if self.children or self.get_assets():
return
return super().delete(using=using, keep_parents=keep_parents)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment