multiple recipients for email
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
This commit is contained in:
parent
edb3336aa7
commit
3dd2f14f72
1 changed files with 5 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue