Mail Recipients

Recipient Triggers Template Code
sub_group_parent_directors sub_director_approval_requested None
    def gather_sub_group_parent_directors(self, **kwargs):
        addrs = []
        if 'submission' in kwargs:
            submission = kwargs['submission']
            if submission.group and submission.group.parent:
                addrs.extend(
                    Recipient.objects.get(
                        slug='group_responsible_directors').gather(group=submission.group.parent)
                )
        return addrs