Skip to content

Commit 5d71446

Browse files
committed
Use Role.formatted_email a couple of places we actually have the role
rather than use the one on person as the latter is guessing while the former is not - Legacy-Id: 8273
1 parent a1a1332 commit 5d71446

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

ietf/doc/mails.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ def email_stream_changed(request, doc, old_stream, new_stream, text=""):
3232

3333
# These use comprehension to deal with conditions when there might be more than one chair listed for a stream
3434
if old_stream:
35-
to.extend([x.person.formatted_email() for x in Role.objects.filter(group__acronym=old_stream.slug,name='chair')])
35+
to.extend([r.formatted_email() for r in Role.objects.filter(group__acronym=old_stream.slug, name='chair')])
3636
if new_stream:
37-
to.extend([x.person.formatted_email() for x in Role.objects.filter(group__acronym=new_stream.slug,name='chair')])
37+
to.extend([r.formatted_email() for r in Role.objects.filter(group__acronym=new_stream.slug, name='chair')])
3838

3939
if not to:
4040
return

ietf/doc/views_conflict_review.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ def start_review_sanity_check(request, name):
401401
def build_notify_addresses(doc_to_review):
402402
# Take care to do the right thing during ietf chair and stream owner transitions
403403
notify_addresses = []
404-
notify_addresses.extend([x.person.formatted_email() for x in Role.objects.filter(group__acronym=doc_to_review.stream.slug,name='chair')])
404+
notify_addresses.extend([r.formatted_email() for r in Role.objects.filter(group__acronym=doc_to_review.stream.slug, name='chair')])
405405
notify_addresses.append("%s@%s" % (doc_to_review.name, settings.TOOLS_SERVER))
406406
return notify_addresses
407407

0 commit comments

Comments
 (0)