Skip to content

Commit

Permalink
multiple recipients for email
Browse files Browse the repository at this point in the history
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
  • Loading branch information
miurahr committed Jun 11, 2015
1 parent edb3336 commit 3dd2f14
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion symposion/reviews/models.py
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 3dd2f14

Please sign in to comment.