fix - get_all_child_org on admin account

This commit is contained in:
2025-11-02 11:06:36 +03:30
parent 3b2dc4c522
commit 19e0c29f02
2 changed files with 5 additions and 1 deletions

View File

@@ -372,7 +372,7 @@ class OrganizationViewSet(BaseViewSet, SoftDeleteMixin, ModelViewSet, DynamicSea
# search & filter
queryset = self.filter_query(
self.get_queryset().filter(id__in={instance.id for instance in child_organizations}))
self.get_queryset())
page = self.paginate_queryset(queryset) # paginate queryset