FIX: fixed missing name of acceptor in email messages about accepted
mails.
This commit is contained in:
@@ -25,13 +25,14 @@ def email_event_update(sender, **kwargs):
|
||||
|
||||
for recipient in recipients:
|
||||
if recipient.email and recipient.email != updater.email:
|
||||
email = emails.EventUpdatedMail(recipient=recipient, event=event, diff=diff, editor=updater)
|
||||
email = emails.EventUpdatedMail(recipient=recipient, event=event, editor=updater, diff=diff)
|
||||
email.send()
|
||||
|
||||
|
||||
def email_event_status_update(sender, **kwargs):
|
||||
event = kwargs.get('event')
|
||||
flag = kwargs.get('flag')
|
||||
updator = flag.user
|
||||
|
||||
app_config = apps.get_containing_app_config(__package__)
|
||||
if not app_config.settings.enable_email_notifications:
|
||||
@@ -61,7 +62,7 @@ def email_event_status_update(sender, **kwargs):
|
||||
elif flag.status.code == 'accepted':
|
||||
# Inform event owner about the acceptance of his event.
|
||||
if event.owner.email:
|
||||
email = emails.EventAcceptedMail(recipient=event.owner, event=event)
|
||||
email = emails.EventAcceptedMail(recipient=event.owner, event=event, editor=updator)
|
||||
email.send()
|
||||
|
||||
# Inform publishers that they have to publish the event.
|
||||
@@ -75,5 +76,6 @@ def email_event_status_update(sender, **kwargs):
|
||||
action = OneClickAction(command='EP')
|
||||
action.parameters = '{event},{user}'.format(event=event.id, user=recipient.id)
|
||||
action.save()
|
||||
email = emails.EventToPublishMail(recipient=recipient, event=event, confirm_publication_action=action)
|
||||
email = emails.EventToPublishMail(recipient=recipient, event=event, editor=updator,
|
||||
confirm_publication_action=action)
|
||||
email.send()
|
||||
|
||||
Reference in New Issue
Block a user