Skip to content

Commit 970248a

Browse files
committed
Merged in [17494] from rjsparks@nostrum.com:
Use current email addresses when we have them when listing document authors. Fixes ietf-tools#1902. - Legacy-Id: 17516 Note: SVN reference [17494] has been migrated to Git commit 8583a0a
2 parents a91e7aa + 8583a0a commit 970248a

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

ietf/doc/models.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,14 @@ def rfcnum(self):
377377
return self.rfc_number()
378378

379379
def author_list(self):
380-
return ", ".join(author.email_id for author in self.documentauthor_set.all() if author.email_id)
380+
best_addresses = []
381+
for author in self.documentauthor_set.all():
382+
if author.email:
383+
if author.email.active:
384+
best_addresses.append(author.email.address)
385+
else:
386+
best_addresses.append(author.email.person.email_address())
387+
return ", ".join(best_addresses)
381388

382389
def authors(self):
383390
return [ a.person for a in self.documentauthor_set.all() ]

0 commit comments

Comments
 (0)