fix inventory balanve & remaining - import provider name in device serializer
This commit is contained in:
@@ -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):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user