From 3c35c80c803ad03c5f0404d7b913140d8b2a1219 Mon Sep 17 00:00:00 2001 From: Mojtaba-z Date: Wed, 10 Dec 2025 12:31:23 +0330 Subject: [PATCH] import - incentive plan filter by group --- apps/product/web/api/v1/viewsets/product_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: