import - incentive plan filter by group

This commit is contained in:
2025-12-10 12:31:23 +03:30
parent 0fdf63b41e
commit 3c35c80c80

View File

@@ -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: