Browse Source

fix: 修复删除组织时组织根节点未被删除的问题

pull/10468/head
Bai 2 years ago committed by Jiangjie.Bai
parent
commit
449e7ce454
  1. 4
      apps/orgs/signal_handlers/common.py

4
apps/orgs/signal_handlers/common.py

@ -78,7 +78,7 @@ def on_org_create_or_update(sender, instance, **kwargs):
@receiver(pre_delete, sender=Organization)
def on_org_delete(sender, instance, **kwargs):
def delete_org_root_node_on_org_delete(sender, instance, **kwargs):
expire_orgs_mapping_for_memory(instance.id)
# 删除该组织下所有 节点
@ -89,7 +89,7 @@ def on_org_delete(sender, instance, **kwargs):
@receiver(post_delete, sender=Organization)
def on_org_delete(sender, instance, **kwargs):
def expire_user_orgs_on_org_delete(sender, instance, **kwargs):
expire_user_orgs()

Loading…
Cancel
Save