From 965c9160ada9c149634948aab8a5d4e0bfbc9482 Mon Sep 17 00:00:00 2001 From: Rishi Gupta Date: Sat, 29 Apr 2017 11:29:58 -0700 Subject: [PATCH] confirmation: Remove references to confirmation_email.* templates. These look like they were intended to be generic, fallback templates for the confirmation flow, but were never written. --- confirmation/models.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/confirmation/models.py b/confirmation/models.py index a702b861ce..2a06d58a0e 100644 --- a/confirmation/models.py +++ b/confirmation/models.py @@ -112,23 +112,15 @@ class ConfirmationManager(models.Manager): template_name = "mituser" else: template_name = obj._meta.model_name - templates = [ - 'confirmation/%s_confirmation_email.subject' % (template_name,), - 'confirmation/confirmation_email.subject', - ] if subject_template_path: template = loader.get_template(subject_template_path) else: - template = loader.select_template(templates) + template = loader.select_template('confirmation/%s_confirmation_email.subject' % (template_name,)) subject = template.render(context).strip().replace(u'\n', u' ') # no newlines, please - templates = [ - 'confirmation/%s_confirmation_email.txt' % (template_name,), - 'confirmation/confirmation_email.txt', - ] if body_template_path: template = loader.get_template(body_template_path) else: - template = loader.select_template(templates) + template = loader.select_template('confirmation/%s_confirmation_email.txt' % (template_name,)) if html_body_template_path: html_template = loader.get_template(html_body_template_path) else: