Added boby and subject to the get_notifications schema

This commit is contained in:
Rebecca Law
2016-12-15 16:19:55 +00:00
parent 2c9a3f6f57
commit 7a623de171
4 changed files with 70 additions and 5 deletions

View File

@@ -7,7 +7,6 @@ from app.celery import provider_tasks
from notifications_utils.clients import redis
from app.dao.notifications_dao import dao_create_notification, dao_delete_notifications_and_history_by_id
from app.models import SMS_TYPE, Notification, KEY_TYPE_TEST, EMAIL_TYPE
from app.notifications.validators import check_sms_content_char_count
from app.v2.errors import BadRequestError, SendNotificationToQueueError
from app.utils import get_template_instance
@@ -16,8 +15,6 @@ def create_content_for_notification(template, personalisation):
template_object = get_template_instance(template.__dict__, personalisation)
check_placeholders(template_object)
if template_object.template_type == SMS_TYPE:
check_sms_content_char_count(template_object.content_count)
return template_object