diff --git a/ietf/mailtrigger/models.py b/ietf/mailtrigger/models.py index a0e9ce701..8344f42e1 100644 --- a/ietf/mailtrigger/models.py +++ b/ietf/mailtrigger/models.py @@ -10,8 +10,6 @@ from ietf.review.models import ReviewTeamSettings import debug # pyflakes:ignore -from ietf.group.models import Role - def clean_duplicates(addrlist): address_info = {} for a in addrlist: @@ -295,7 +293,7 @@ class Recipient(models.Model): def gather_doc_ipr_group_or_ad(self, **kwargs): """A document's group email list if the document is a group document, otherwise, the document's AD if the document is active, otherwise - the IETF chair""" + nobody (in the past, the default was the IETF chair)""" addrs=[] if 'doc' in kwargs: doc=kwargs['doc'] @@ -303,7 +301,7 @@ class Recipient(models.Model): if doc.ad and doc.get_state_slug('draft')=='active': addrs.extend(Recipient.objects.get(slug='doc_ad').gather(**kwargs)) else: - addrs.extend(Role.objects.filter(group__acronym='gen',name='ad').values_list('email__address',flat=True)) + pass else: addrs.extend(Recipient.objects.get(slug='doc_group_mail_list').gather(**kwargs)) return addrs