From 208bc91fbcd12576310cb405f0a713f14429b2a1 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Sat, 31 Jan 2009 14:22:28 +0100 Subject: [PATCH] Make a proper list of recipients in the influence_saved notification. --- influences/notify.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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): -- 2.30.2