fix - org linked rancher list pagination bug

This commit is contained in:
2025-12-23 11:50:37 +03:30
parent 846e57dd41
commit 0937d1f3ca
2 changed files with 5 additions and 3 deletions

View File

@@ -377,10 +377,10 @@ class OrganizationViewSet(BaseViewSet, ModelViewSet, DynamicSearchMixin):
def get_child_organizations(self, request):
organization = get_organization_by_user(request.user)
child_organizations = self.get_all_org_child(organization)
# search & filter
queryset = self.filter_query(
self.get_queryset())
self.get_queryset()
) if not 'org_id' in self.request.query_params.keys() else self.get_all_org_child(organization)
page = self.paginate_queryset(queryset) # paginate queryset