From: Matthijs Kooijman Date: Sat, 31 Jan 2009 13:22:28 +0000 (+0100) Subject: Make a proper list of recipients in the influence_saved notification. X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fprojects%2Fxerxes.git;a=commitdiff_plain;h=208bc91fbcd12576310cb405f0a713f14429b2a1 Make a proper list of recipients in the influence_saved notification. --- diff --git a/influences/notify.py b/influences/notify.py index 2e719de..3b5d874 100644 --- a/influences/notify.py +++ b/influences/notify.py @@ -17,9 +17,11 @@ signals.post_save.connect(character_saved, sender=Character) 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.related_players.keys(), 'lextalionis@evolution-events.nl'], 'influences/email/influence_changed.html', {'influence' : instance, 'created' : created}) + notify(recipients, 'influences/email/influence_changed.html', {'influence' : instance, 'created' : created}) def comment_saved(**kwargs): if (settings.DEBUG):