fix - soft delete in quota binary tree & CO level of show organizations

This commit is contained in:
2025-11-01 10:12:58 +03:30
parent 364a15acf8
commit fc67266d64
6 changed files with 60 additions and 44 deletions

View File

@@ -0,0 +1,13 @@
import typing
def get_all_distribution_child(distribution: object = None) -> typing.Any:
"""
get all child of an distribution
"""
descendants = []
children = distribution.children.all() # noqa
for child in children:
descendants.append(child)
descendants.extend(get_all_distribution_child(child))
return descendants