From 0a32d9efa3a84508a9417df8da8c5bd1881d32c9 Mon Sep 17 00:00:00 2001 From: Rishi Gupta Date: Thu, 27 Apr 2017 19:03:13 -0700 Subject: [PATCH] email: Fix filenames of notify_change_in_email templates. --- ...ge_in_email_subject.txt => notify_change_in_email.subject} | 0 ...fy_change_in_email_body.txt => notify_change_in_email.txt} | 0 zerver/tests/test_templates.py | 2 +- zerver/views/user_settings.py | 4 ++-- 4 files changed, 3 insertions(+), 3 deletions(-) rename templates/confirmation/{notify_change_in_email_subject.txt => notify_change_in_email.subject} (100%) rename templates/confirmation/{notify_change_in_email_body.txt => notify_change_in_email.txt} (100%) diff --git a/templates/confirmation/notify_change_in_email_subject.txt b/templates/confirmation/notify_change_in_email.subject similarity index 100% rename from templates/confirmation/notify_change_in_email_subject.txt rename to templates/confirmation/notify_change_in_email.subject diff --git a/templates/confirmation/notify_change_in_email_body.txt b/templates/confirmation/notify_change_in_email.txt similarity index 100% rename from templates/confirmation/notify_change_in_email_body.txt rename to templates/confirmation/notify_change_in_email.txt diff --git a/zerver/tests/test_templates.py b/zerver/tests/test_templates.py index c613d4885d..8f83e57050 100644 --- a/zerver/tests/test_templates.py +++ b/zerver/tests/test_templates.py @@ -90,7 +90,7 @@ class TemplateTestCase(ZulipTestCase): 'confirmation/emailchangestatus_confirmation_email.subject', 'confirmation/emailchangestatus_confirmation_email.html', 'confirmation/emailchangestatus_confirmation_email.txt', - 'confirmation/notify_change_in_email_subject.txt', + 'confirmation/notify_change_in_email.subject', 'corporate/mit.html', 'corporate/zephyr.html', 'corporate/zephyr-mirror.html', diff --git a/zerver/views/user_settings.py b/zerver/views/user_settings.py index 7b9e38db65..6bb5dbe719 100644 --- a/zerver/views/user_settings.py +++ b/zerver/views/user_settings.py @@ -60,9 +60,9 @@ def confirm_email_change(request, confirmation_key): 'new_email': new_email, } subject = render_to_string( - 'confirmation/notify_change_in_email_subject.txt', context) + 'confirmation/notify_change_in_email.subject', context) body = render_to_string( - 'confirmation/notify_change_in_email_body.txt', context) + 'confirmation/notify_change_in_email.txt', context) send_mail(subject, body, settings.DEFAULT_FROM_EMAIL, [old_email]) ctx = {