Fixed a long-standing bug in the liaison.name() code.

- Legacy-Id: 15177
This commit is contained in:
Henrik Levkowetz 2018-05-26 08:39:28 +00:00
parent c97f6376a3
commit aa1e42100b

View file

@ -84,11 +84,11 @@ class LiaisonStatement(models.Model):
if self.from_groups.count():
frm = ', '.join([i.acronym or i.name for i in self.from_groups.all()])
else:
frm = self.from_name
frm = self.from_contact.person.name
if self.to_groups.count():
to = ', '.join([i.acronym or i.name for i in self.to_groups.all()])
else:
to = self.to_name
to = self.to_contacts
return slugify("liaison" + " " + self.submitted.strftime("%Y-%m-%d") + " " + frm[:50] + " " + to[:50] + " " + self.title[:115])
@property