X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=influences%2Fnotify.py;h=d53ab36a51a9dd6377ec85c487ac62e68a3a6aac;hb=d8acd479311086f3372ed61688a7468356198a04;hp=3b5d874b5239a6e05390307b5449c41edc867d9a;hpb=208bc91fbcd12576310cb405f0a713f14429b2a1;p=matthijs%2Fprojects%2Fxerxes.git diff --git a/influences/notify.py b/influences/notify.py index 3b5d874..d53ab36 100644 --- a/influences/notify.py +++ b/influences/notify.py @@ -23,6 +23,8 @@ def influence_saved(**kwargs): # TODO: Perhaps only notify when the status is / becomes Done? notify(recipients, '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