make sure letters are handled properly by the v1 api

This commit is contained in:
Leo Hemsted
2017-08-25 16:44:05 +01:00
parent 23fdbe2897
commit c863b33c8d
2 changed files with 11 additions and 3 deletions

View File

@@ -468,7 +468,7 @@ class NotificationWithPersonalisationSchema(NotificationWithTemplateSchema):
in_data['template'] = in_data.pop('template_history')
template = get_template_instance(in_data['template'], in_data['personalisation'])
in_data['body'] = str(template)
if in_data['template']['template_type'] == models.EMAIL_TYPE:
if in_data['template']['template_type'] != models.SMS_TYPE:
in_data['subject'] = template.subject
in_data['content_char_count'] = None
else: