From da7002cf0c9a4ace23e6cf200c89a091a16068b0 Mon Sep 17 00:00:00 2001 From: Jim Ladd Date: Mon, 21 Oct 2019 13:52:36 -0700 Subject: [PATCH] Don't use i18n for NT body string --- awx/main/notifications/custom_notification_base.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/awx/main/notifications/custom_notification_base.py b/awx/main/notifications/custom_notification_base.py index a99c710e95..2abff26f62 100644 --- a/awx/main/notifications/custom_notification_base.py +++ b/awx/main/notifications/custom_notification_base.py @@ -1,13 +1,10 @@ # Copyright (c) 2019 Ansible, Inc. # All Rights Reserved. -from django.utils.encoding import smart_text -from django.utils.translation import ugettext_lazy as _ - class CustomNotificationBase(object): DEFAULT_MSG = "{{ job_friendly_name }} #{{ job.id }} '{{ job.name }}' {{ job.status }}: {{ url }}" - DEFAULT_BODY = smart_text(_("{{ job_friendly_name }} #{{ job.id }} had status {{ job.status }}, view details at {{ url }}\n\n{{ job_summary_dict }}")) + DEFAULT_BODY = "{{ job_friendly_name }} #{{ job.id }} had status {{ job.status }}, view details at {{ url }}\n\n{{ job_summary_dict }}" default_messages = {"started": {"message": DEFAULT_MSG, "body": None}, "success": {"message": DEFAULT_MSG, "body": None},