From: Matthijs Kooijman Date: Sat, 31 Jan 2009 13:25:54 +0000 (+0100) Subject: Reconnect the influence_saved notify handler. X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fprojects%2Fxerxes.git;a=commitdiff_plain;h=89667723f59df28360a5e12dd969a8b190caa8d9 Reconnect the influence_saved notify handler. The connect statement went missing in 419cb678949006d2c5bd6bf5a3176c67adf4cef7. --- diff --git a/influences/notify.py b/influences/notify.py index 1b6fb47..ddcf37c 100644 --- a/influences/notify.py +++ b/influences/notify.py @@ -21,6 +21,8 @@ def influence_saved(**kwargs): # 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}) +signals.post_save.connect(influence_saved, sender=Influence) + def comment_saved(**kwargs): if (settings.DEBUG): return