def influence_saved(**kwargs):
instance = kwargs['instance']
created = kwargs['created']
+ recipients = ['lextalionis@evolution-events.nl']
+ recipients.extend(instance.related_players.keys())
if (not settings.DEBUG):
# TODO: Perhaps only notify when the status is / becomes Done?
- notify([instance.character.player, 'lextalionis@evolution-events.nl'], 'influences/email/influence_changed.html', {'influence' : instance, 'created' : created})
+ notify(recipients, 'influences/email/influence_changed.html', {'influence' : instance, 'created' : created})
+ signals.post_save.connect(influence_saved, sender=Influence)
+
def comment_saved(**kwargs):
if (settings.DEBUG):
return