Bump utils to bring in recent changes to Template classes

The main things we have to account for are:
- `WithSubjectTemplate` has gone
- every template dictionary must have `template_type` set
This commit is contained in:
Chris Hill-Scott
2020-04-15 17:58:57 +01:00
parent 1cebd74403
commit 88734bb74f
6 changed files with 44 additions and 30 deletions

View File

@@ -1,6 +1,6 @@
from flask import abort, current_app, render_template
from flask_wtf import FlaskForm as Form
from notifications_utils.template import Template
from notifications_utils.template import SMSPreviewTemplate
from wtforms import (
FileField,
PasswordField,
@@ -31,7 +31,7 @@ def styleguide():
form.message.data = sms
form.validate()
template = Template({'content': sms})
template = SMSPreviewTemplate({'content': sms, 'template_type': 'sms'})
return render_template(
'views/styleguide.html',