Reconnect the influence_saved notify handler.
[matthijs/projects/xerxes.git] / influences / notify.py
index 1b6fb478253eec2361aa2147acff32354bbe4bb7..ddcf37cea7b06c5770e98ee5f8be0eec2e03fe07 100644 (file)
@@ -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