notify(instance.player, 'influences/email/character_changed', {'character' : instance, 'created' : created})
dispatcher.connect(character_saved, signals.post_save, Character)
+
+def influence_saved(instance, created):
+ # TODO: Perhaps only notify when the status is / becomes Done?
+ notify(instance.character.player, 'influences/email/influence_changed', {'influence' : instance, 'created' : created})
+
+dispatcher.connect(influence_saved, signals.post_save, Influence)
--- /dev/null
+{% autoescape off %}From: Inschrijfsysteem <inschrijf@evolution-events.nl>
+Subject: Influence {{ influence }} was changed.
+
+{% filter lower|wordwrap:72 %}
+You have submitted an influence on {{influence.created}}.
+{% if not created %}The influence has been modified. The current status is:{% else %}You submitted:{% endif %}
+{% endfilter %}
+Character: {{ influence.character }}
+Contact: {{ influence.contact }}
+Summary: {{ influence.summary }}
+Status: {{ influence.get_status_display }}
+Long term: {{ influence.longterm }}
+
+Description:
+{{ influence.description }}
+
+{% if influence.result %}
+Result:
+{{ influence.result }}
+{% endif %}
+{% endautoescape %}