projects
/
matthijs
/
projects
/
xerxes.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a435811
)
Reconnect the influence_saved notify handler.
author
Matthijs Kooijman
<matthijs@stdin.nl>
Sat, 31 Jan 2009 13:25:54 +0000
(14:25 +0100)
committer
Matthijs 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
patch
|
blob
|
history
diff --git
a/influences/notify.py
b/influences/notify.py
index 1b6fb478253eec2361aa2147acff32354bbe4bb7..ddcf37cea7b06c5770e98ee5f8be0eec2e03fe07 100644
(file)
--- 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