From 43ecf9b7a02bd6678f26fd16bf75a2109200ce2e Mon Sep 17 00:00:00 2001 From: sniedzielski Date: Tue, 8 Oct 2024 14:44:02 +0200 Subject: [PATCH] CM-1004: revert redundant change --- social_protection/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/social_protection/views.py b/social_protection/views.py index 9c2984d..cb35486 100644 --- a/social_protection/views.py +++ b/social_protection/views.py @@ -223,7 +223,7 @@ def _resolve_import_beneficiaries_args(request): raise ValueError(f'Workflow name not provided') if not workflow_group: raise ValueError(f'Workflow group not provided') - if ((group_aggregation_column) and + if (group_aggregation_column and BenefitPlan.objects.filter(uuid=benefit_plan_uuid).first().type != BenefitPlan.BenefitPlanType.GROUP_TYPE): raise ValueError(f'Group aggregation only for group type benefit plans')