Mail Recipients

Recipient Triggers Template Code
doc_group_delegates doc_stream_state_edited None
    def gather_doc_group_delegates(self, **kwargs):
        addrs = []
        if 'doc' in kwargs:
            doc=kwargs['doc']
            if doc.group and doc.group.features.acts_like_wg:
                addrs.extend(doc.group.role_set.filter(name='delegate').values_list('email__address',flat=True))
        return addrs