fix inventory balanve & remaining - import provider name in device serializer

This commit is contained in:
2025-08-07 14:51:19 +03:30
parent bc8c884678
commit b6ef262c33
5 changed files with 28 additions and 1 deletions

View File

@@ -218,6 +218,12 @@ class OrganizationViewSet(ModelViewSet, DynamicSearchMixin):
descendants.extend(self.get_all_org_child(child))
return descendants
def list(self, request, *args, **kwargs):
""" all organization """
serializer = self.serializer_class(self.queryset.order_by('-create_date'), many=True)
return Response(serializer.data, status=status.HTTP_200_OK)
@transaction.atomic
def create(self, request, *args, **kwargs):
"""