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