Skip to main content

Mail recipients

Recipient Triggers Template Code
doc_group_delegates doc_external_resource_change_requested, doc_stream_state_edited 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