from django.contrib.auth.models import Group
def character_saved(instance, created):
- notify(instance.player, 'influences/email/character_changed', {'character' : instance, 'created' : created})
+ notify(instance.player, 'influences/email/character_changed.hmtl', {'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})
+ notify(instance.character.player, 'influences/email/influence_changed.html', {'influence' : instance, 'created' : created})
dispatcher.connect(influence_saved, signals.post_save, Influence)
+++ /dev/null
-From: Inschrijfsysteem <inschrijf@evolution-events.nl>
-Subject: Character {{ character }} was changed.
-
-Pomtieflomptie
--- /dev/null
+From: Inschrijfsysteem <inschrijf@evolution-events.nl>
+Subject: Character {{ character }} was changed.
+
+Pomtieflomptie
+++ /dev/null
-{% load i18n%}{% autoescape off %}From: Inschrijfsysteem <inschrijf@evolution-events.nl>
-Subject: {% if created %}{% blocktrans %}Influence "{{ influence }}" submitted.{% endblocktrans %}{% else %}{% blocktrans %}Influence "{{ influence }}" was changed.{% endblocktrans %}{% endif%}
-
-{% filter wordwrap:72 %}
-{% blocktrans with influence.created as creation_date %}You have submitted an influence on {{ creation_date }}.{% endblocktrans %}
-{% if not created %}{% blocktrans %}The influence has been modified. The current status is{%endblocktrans %}:{% else %}{% blocktrans %}You submitted{% endblocktrans%}:{% endif %}
-{% endfilter %}
-{% filter ljust:20%}{% trans "Character" %}:{%endfilter%}{{ influence.character }}
-{% filter ljust:20%}{% trans "Contact" %}:{%endfilter%}{{ influence.contact }}
-{% filter ljust:20%}{% trans "Summary" %}:{%endfilter%}{{ influence.summary }}
-{% filter ljust:20%}{% trans "Status" %}:{%endfilter%}{{ influence.get_status_display }}
-{% filter ljust:20%}{% trans "Long term" %}:{%endfilter%}{{ influence.longterm|yesno|capfirst }}
-{% trans "Description" %}:
-{% filter wordwrap:72 %}{{ influence.description }}{% endfilter %}
-{% if influence.result %}
-{% trans "Result" %}:
-{% filter wordwrap:72 %}{{ influence.result }}{% endfilter %}
-{% endif %}{% endautoescape %}
--- /dev/null
+{% load i18n%}{% autoescape off %}From: Inschrijfsysteem <inschrijf@evolution-events.nl>
+Subject: {% if created %}{% blocktrans %}Influence "{{ influence }}" submitted.{% endblocktrans %}{% else %}{% blocktrans %}Influence "{{ influence }}" was changed.{% endblocktrans %}{% endif%}
+
+{% filter wordwrap:72 %}
+{% blocktrans with influence.created as creation_date %}You have submitted an influence on {{ creation_date }}.{% endblocktrans %}
+{% if not created %}{% blocktrans %}The influence has been modified. The current status is{%endblocktrans %}:{% else %}{% blocktrans %}You submitted{% endblocktrans%}:{% endif %}
+{% endfilter %}
+{% filter ljust:20%}{% trans "Character" %}:{%endfilter%}{{ influence.character }}
+{% filter ljust:20%}{% trans "Contact" %}:{%endfilter%}{{ influence.contact }}
+{% filter ljust:20%}{% trans "Summary" %}:{%endfilter%}{{ influence.summary }}
+{% filter ljust:20%}{% trans "Status" %}:{%endfilter%}{{ influence.get_status_display }}
+{% filter ljust:20%}{% trans "Long term" %}:{%endfilter%}{{ influence.longterm|yesno|capfirst }}
+{% trans "Description" %}:
+{% filter wordwrap:72 %}{{ influence.description }}{% endfilter %}
+{% if influence.result %}
+{% trans "Result" %}:
+{% filter wordwrap:72 %}{{ influence.result }}{% endfilter %}
+{% endif %}{% endautoescape %}