email: Fix filenames of notify_change_in_email templates.

This commit is contained in:
Rishi Gupta 2017-04-27 19:03:13 -07:00
parent cafc60dd1d
commit 0a32d9efa3
4 changed files with 3 additions and 3 deletions

View File

@ -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',

View File

@ -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 = {