Skip to content

Commit

Permalink
Merge branch 'feature/list-catalog-products' of https://github.com/we…
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaslinhares committed Jan 16, 2024
2 parents b99188c + e7aff83 commit 164c1b1
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,9 @@ def list(self, request, *args, **kwargs):
def list_products(self, request, app_uuid, catalog_uuid, *args, **kwargs):
catalog = self._get_catalog(catalog_uuid, app_uuid)
products = catalog.products.all()
self.paginate_queryset(products)
serializer = ProductSerializer(products, many=True)

return self.get_paginated_response(serializer.data)

def destroy(self, request, *args, **kwargs):
Expand Down

0 comments on commit 164c1b1

Please sign in to comment.