summaryrefslogtreecommitdiff
path: root/patchwork/notifications.py
diff options
context:
space:
mode:
authorStephen Finucane <stephen@that.guru>2018-06-06 15:31:33 +0100
committerStephen Finucane <stephen@that.guru>2018-09-29 22:41:16 +0100
commit3f2adb19ec0cd5ef7508e5b01589af8af75d301a (patch)
tree02159d15824d40d67f00322ef1b7e6554c696ade /patchwork/notifications.py
parentaa266a28c6a022ad6952fac8f36afff0c540dccf (diff)
downloadpatchwork-3f2adb19ec0cd5ef7508e5b01589af8af75d301a.tar
patchwork-3f2adb19ec0cd5ef7508e5b01589af8af75d301a.tar.gz
templates: Move mails to separate directory
This makes things a little easier to parse. A couple of templates are renamed and the 'register.mail' template, which appears to be unused since commit f1e089f7, is removed. Signed-off-by: Stephen Finucane <stephen@that.guru>
Diffstat (limited to 'patchwork/notifications.py')
-rw-r--r--patchwork/notifications.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/patchwork/notifications.py b/patchwork/notifications.py
index 3922faf..7be30f0 100644
--- a/patchwork/notifications.py
+++ b/patchwork/notifications.py
@@ -63,10 +63,11 @@ def send_notifications():
}
subject = render_to_string(
- 'patchwork/patch-change-notification-subject.text',
+ 'patchwork/mails/patch-change-notification-subject.txt',
context).strip()
- content = render_to_string('patchwork/patch-change-notification.mail',
- context)
+ content = render_to_string(
+ 'patchwork/mails/patch-change-notification.txt',
+ context)
message = EmailMessage(subject=subject, body=content,
from_email=settings.NOTIFICATION_FROM_EMAIL,