From 7e3d08fcecd7c510fda8b0ea5c3818342ebaa66c Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Fri, 1 Feb 2008 11:52:09 +0100 Subject: [PATCH 1/1] * Rename email templates to .html. With any other extension, make-messages won't recognoize them as templates... --- influences/notify.py | 4 ++-- .../email/{character_changed => character_changed.html} | 0 .../email/{influence_changed => influence_changed.html} | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename templates/influences/email/{character_changed => character_changed.html} (100%) rename templates/influences/email/{influence_changed => influence_changed.html} (100%) diff --git a/influences/notify.py b/influences/notify.py index 2bf7483..693863a 100644 --- a/influences/notify.py +++ b/influences/notify.py @@ -5,12 +5,12 @@ from ee.tools.notify import notify 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) diff --git a/templates/influences/email/character_changed b/templates/influences/email/character_changed.html similarity index 100% rename from templates/influences/email/character_changed rename to templates/influences/email/character_changed.html diff --git a/templates/influences/email/influence_changed b/templates/influences/email/influence_changed.html similarity index 100% rename from templates/influences/email/influence_changed rename to templates/influences/email/influence_changed.html -- 2.30.2