diff --git a/app/template/rest.py b/app/template/rest.py index cb9e73678..c1d00cac0 100644 --- a/app/template/rest.py +++ b/app/template/rest.py @@ -14,6 +14,7 @@ from app.dao.templates_dao import ( dao_get_template_versions ) from notifications_utils.template import Template +from notifications_utils.renderers import PassThrough from app.dao.services_dao import dao_fetch_service_by_id from app.models import SMS_TYPE from app.schemas import (template_schema, template_history_schema) @@ -91,7 +92,7 @@ def get_template_by_id_and_service_id(service_id, template_id): def preview_template_by_id_and_service_id(service_id, template_id): fetched_template = dao_get_template_by_id_and_service_id(template_id=template_id, service_id=service_id) data = template_schema.dump(fetched_template).data - template_object = Template(data, values=request.args.to_dict()) + template_object = Template(data, values=request.args.to_dict(), renderer=PassThrough()) if template_object.missing_data: raise InvalidRequest( diff --git a/requirements.txt b/requirements.txt index 175bfd0f6..4a560ab81 100644 --- a/requirements.txt +++ b/requirements.txt @@ -23,4 +23,4 @@ statsd==3.2.1 git+https://github.com/alphagov/notifications-python-client.git@1.0.0#egg=notifications-python-client==1.0.0 -git+https://github.com/alphagov/notifications-utils.git@8.4.1#egg=notifications-utils==8.4.1 +git+https://github.com/alphagov/notifications-utils.git@8.6.0#egg=notifications-utils==8.6.0