Skip to content

Commit aa1e421

Browse files
committed
Fixed a long-standing bug in the liaison.name() code.
- Legacy-Id: 15177
1 parent c97f637 commit aa1e421

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ietf/liaisons/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@ def name(self):
8484
if self.from_groups.count():
8585
frm = ', '.join([i.acronym or i.name for i in self.from_groups.all()])
8686
else:
87-
frm = self.from_name
87+
frm = self.from_contact.person.name
8888
if self.to_groups.count():
8989
to = ', '.join([i.acronym or i.name for i in self.to_groups.all()])
9090
else:
91-
to = self.to_name
91+
to = self.to_contacts
9292
return slugify("liaison" + " " + self.submitted.strftime("%Y-%m-%d") + " " + frm[:50] + " " + to[:50] + " " + self.title[:115])
9393

9494
@property

0 commit comments

Comments
 (0)