X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=influences%2Fnotify.py;h=ddcf37cea7b06c5770e98ee5f8be0eec2e03fe07;hb=4bd170e7451502e3d375570dad58bed94a751af2;hp=1b6fb478253eec2361aa2147acff32354bbe4bb7;hpb=8b00931d1b7e192e02455a35b1e69ffe03d2e71a;p=matthijs%2Fprojects%2Fxerxes.git 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