mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-25 08:44:23 -04:00
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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user