mirror of https://github.com/jumpserver/jumpserver
fix: 修复删除组织时组织根节点未被删除的问题
parent
9cc9600a4c
commit
449e7ce454
|
@ -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…
Reference in New Issue