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

pull/2831/head^2
八千流 2019-07-04 18:31:53 +08:00 committed by BaiJiangJie
parent 218e425333
commit 1256944b96
1 changed files with 1 additions and 1 deletions

View File

@ -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)