diff --git a/gratipay/models/package/__init__.py b/gratipay/models/package/__init__.py index bc811a1a2f..a1df9931e2 100644 --- a/gratipay/models/package/__init__.py +++ b/gratipay/models/package/__init__.py @@ -73,6 +73,15 @@ def set_team(self, team): """, locals()) self.set_attributes(team=team) + def set_payment_instruction(self, participant, amount): + team_id = self.team_id + if team_id: + team = Team.from_id(team_id) + participant.set_payment_instruction(team, amount) + else: + # TODO Add to pledges when we introduce it. + pass + class NotAllowed(Exception): pass