fix - org rancher linked list bug of org_vhild to queryset

This commit is contained in:
2025-12-24 12:18:17 +03:30
parent 3627c69b99
commit 78d05ac932

View File

@@ -16,6 +16,7 @@ class RancherOrganizationService:
"""
if org.type.key != 'ADM':
organizations = get_all_org_child(org)
organizations = Organization.objects.filter(id__in=[item.id for item in organizations])
else:
organizations = Organization.objects.filter(type__key=org_type_key)