From c92879dba02701c6a70b62c117edf08c65b8fe31 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Mon, 21 Mar 2016 11:24:43 +0000 Subject: [PATCH] Only prefix SMS templates with service name Implements: https://github.com/alphagov/notifications-utils/pull/13 Fixes: https://www.pivotaltracker.com/story/show/115879891 --- app/main/views/jobs.py | 2 +- app/main/views/send.py | 2 +- requirements.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/main/views/jobs.py b/app/main/views/jobs.py index 48ef1875c..5aad5fecb 100644 --- a/app/main/views/jobs.py +++ b/app/main/views/jobs.py @@ -54,7 +54,7 @@ def view_job(service_id, job_id): uploaded_file_name=job['original_file_name'], template=Template( template, - prefix=service['name'] if template['template_type'] == 'sms' else '' + prefix=service['name'] ), service_id=service_id, service=service, diff --git a/app/main/views/send.py b/app/main/views/send.py index 41face291..ea9960852 100644 --- a/app/main/views/send.py +++ b/app/main/views/send.py @@ -232,7 +232,7 @@ def check_messages(service_id, upload_id): template = Template( template, - prefix=service['name'] if template['template_type'] == 'sms' else '' + prefix=service['name'] ) recipients = RecipientCSV( diff --git a/requirements.txt b/requirements.txt index c0d9bbd45..b1c315f8d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -14,4 +14,4 @@ Pygments==2.0.2 git+https://github.com/alphagov/notifications-python-client.git@0.3.1#egg=notifications-python-client==0.3.1 -git+https://github.com/alphagov/notifications-utils.git@3.0.0#egg=notifications-utils==3.0.0 +git+https://github.com/alphagov/notifications-utils.git@3.1.1#egg=notifications-utils==3.1.1