diff --git a/templates/zerver/emails/notify_change_in_email.subject b/templates/zerver/emails/notify_change_in_email.subject index b7293458e7..b75912baa7 100644 --- a/templates/zerver/emails/notify_change_in_email.subject +++ b/templates/zerver/emails/notify_change_in_email.subject @@ -1 +1 @@ -Zulip email changed for {{ realm.name }} +Zulip email changed for {{ realm_name }} diff --git a/zerver/views/user_settings.py b/zerver/views/user_settings.py index c91ceb453b..c1ff5b3b67 100644 --- a/zerver/views/user_settings.py +++ b/zerver/views/user_settings.py @@ -40,7 +40,7 @@ def confirm_email_change(request: HttpRequest, confirmation_key: str) -> HttpRes raise JsonableError(_("Email address changes are disabled in this organization.")) do_change_user_email(user_profile, new_email) - context = {'realm': user_profile.realm, 'new_email': new_email} + context = {'realm_name': user_profile.realm.name, 'new_email': new_email} send_email('zerver/emails/notify_change_in_email', to_email=old_email, from_name="Zulip Account Security", from_address=FromAddress.SUPPORT, context=context)