Use the actual author email address rather than the method to recover email addresses when sending email.

- Legacy-Id: 3170
This commit is contained in:
Henrik Levkowetz 2011-06-08 19:21:41 +00:00
parent 4b06d7ec5e
commit 010e924e74

View file

@ -179,9 +179,9 @@ def update_authors(draft, submission):
name_suffix=author.name_suffix or '',
)
person.save()
if author.email:
if author.email_address:
EmailAddress.objects.create(
address=author.email,
address=author.email_address,
priority=1,
type='INET',
person_or_org=person,