Merge pull request #1316 from alphagov/outbound-body

Look at `body`, not `template` in outbound texts
This commit is contained in:
Chris Hill-Scott
2017-06-15 09:52:10 +01:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -46,7 +46,7 @@ def get_sms_thread(service_id, user_number):
'inbound': is_inbound,
'content': SMSPreviewTemplate(
{
'content': notification.get('content') or notification['template']['content']
'content': notification.get('content') or notification['body']
},
downgrade_non_gsm_characters=(not is_inbound)
),

View File

@@ -249,8 +249,8 @@ def notification_json(
'id': template['id'],
'name': template['name'],
'template_type': template['template_type'],
'content': template['content'],
},
'body': template['content'],
'job': job_payload,
'sent_at': sent_at,
'status': status,