Skip to content

Commit

Permalink
create PP use tp.household_list instead of households (#4526)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavlo-mk authored Dec 18, 2024
1 parent cccdcf0 commit d2b3fc2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ def check_payment_plan_and_update_status(self, approval_process: ApprovalProcess
def create_payments(payment_plan: PaymentPlan) -> None:
payments_to_create = []
households = (
payment_plan.target_population.households.annotate(
payment_plan.target_population.household_list.annotate(
collector=IndividualRoleInHousehold.objects.filter(household=OuterRef("pk"), role=ROLE_PRIMARY).values(
"individual"
)[:1]
Expand Down

0 comments on commit d2b3fc2

Please sign in to comment.