created = kwargs['created']
if (not settings.DEBUG):
# 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})
+ notify([instance.related_players.keys(), 'lextalionis@evolution-events.nl'], 'influences/email/influence_changed.html', {'influence' : instance, 'created' : created})
def comment_saved(**kwargs):
if (settings.DEBUG):
if isinstance(object, Influence):
recipients = ['lextalionis@evolution-events.nl']
if comment.is_public:
- recipients.append(object.character.player)
+ recipients.extend(object.related_players.keys())
notify(
recipients,
\\
{% filter wordwrap:72 %}
{% blocktrans with influence.created|date:"j F Y" as creation_date %}
-You have submitted an influence on {{ creation_date }}.
+You are involved in this influence, submitted on {{ creation_date }}.
{% endblocktrans %}
{% if not created %}
{% blocktrans %}The influence has been modified. The current status is{%endblocktrans %}:{% else %}{% blocktrans %}You submitted{% endblocktrans%}: