Skip to main content

Mail recipients

Recipient Triggers Template Code
group_responsible_directors group_added_comment, group_milestones_edited, group_personnel_change, session_requested_long, slides_proposed , session_minutes_reminder, session_request_cancelled, session_requested, session_request_not_meeting, session_scheduled
    def gather_group_responsible_directors(self, **kwargs):
        addrs = []
        if 'group' in kwargs:
            group = kwargs['group']
            if not group.acronym=='none':
                addrs.extend(group.role_set.filter(name='ad').values_list('email__address',flat=True))
            if group.type_id=='rg':
                addrs.extend(Recipient.objects.get(slug='stream_managers').gather(**{'streams':['irtf']}))
            elif group.type_id=='program':
                addrs.extend(Recipient.objects.get(slug='iab').gather(**{}))
        return addrs