Skip to content

Commit

Permalink
Merge pull request #81 from miurahr/multiple-speakers
Browse files Browse the repository at this point in the history
Multiple speakers
  • Loading branch information
paltman committed Jun 19, 2015
2 parents 7dc043b + 3dd2f14 commit 2aa805a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions symposion/proposals/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ def notification_email_context(self):
return {
"title": self.title,
"speaker": self.speaker.name,
"speakers": ', '.join([x.name for x in self.speakers()]),
"kind": self.kind.name,
}

Expand Down
6 changes: 5 additions & 1 deletion symposion/reviews/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 2aa805a

Please sign in to comment.