Merge pull request #81 from miurahr/multiple-speakers

Multiple speakers
This commit is contained in:
Patrick Altman 2015-06-18 22:59:36 -05:00
commit 2aa805a01d
2 changed files with 6 additions and 1 deletions

View file

@ -135,6 +135,7 @@ class ProposalBase(models.Model):
return {
"title": self.title,
"speaker": self.speaker.name,
"speakers": ', '.join([x.name for x in self.speakers()]),
"kind": self.kind.name,
}

View file

@ -309,9 +309,13 @@ class ResultNotification(models.Model):
subject = models.CharField(max_length=100)
body = models.TextField()
def recipients(self):
for speaker in self.proposal.speakers():
yield speaker.email
@property
def email_args(self):
return (self.subject, self.body, self.from_address, [self.to_address])
return (self.subject, self.body, self.from_address, self.recipients())
def promote_proposal(proposal):