diff --git a/apps/product/web/api/v1/viewsets/product_api.py b/apps/product/web/api/v1/viewsets/product_api.py index 9563d14..95d4162 100644 --- a/apps/product/web/api/v1/viewsets/product_api.py +++ b/apps/product/web/api/v1/viewsets/product_api.py @@ -437,9 +437,9 @@ class IncentivePlanViewSet(SoftDeleteMixin, viewsets.ModelViewSet, DynamicSearch def active_plans(self, request): """ return active incentive plans """ - query_param = self.request.query_param # noqa + query_params = self.request.query_params # noqa - group = query_param.get('group') if 'group' in query_param.keys() else None + group = query_params.get('group') if 'group' in query_params.keys() else None base_query = {} if group: