Reconnect the influence_saved notify handler.
authorMatthijs Kooijman <matthijs@stdin.nl>
Sat, 31 Jan 2009 13:25:54 +0000 (14:25 +0100)
committerMatthijs Kooijman <matthijs@stdin.nl>
Sat, 31 Jan 2009 13:25:54 +0000 (14:25 +0100)
The connect statement went missing in
419cb678949006d2c5bd6bf5a3176c67adf4cef7.

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})
 
         # 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
 def comment_saved(**kwargs):
     if (settings.DEBUG):
         return