diff --git a/apps/product/web/api/v1/viewsets/product_api.py b/apps/product/web/api/v1/viewsets/product_api.py index f74cc75..b1e420f 100644 --- a/apps/product/web/api/v1/viewsets/product_api.py +++ b/apps/product/web/api/v1/viewsets/product_api.py @@ -314,6 +314,11 @@ class IncentivePlanViewSet(viewsets.ModelViewSet): # noqa Q(start_date_limit__lte=today, end_date_limit__gte=today) ) + page = self.paginate_queryset(incentive_plans) + if page is not None: + serializer = self.get_serializer(page, many=True) + return self.get_paginated_response(serializer.data) + serializer = self.serializer_class(incentive_plans, many=True) return Response(serializer.data, status=status.HTTP_200_OK)