mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 08:16:51 -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:
@@ -128,6 +128,7 @@ def email_template():
|
||||
brand_name = email_branding['name']
|
||||
|
||||
template = {
|
||||
'template_type': 'email',
|
||||
'subject': 'foo',
|
||||
'content': (
|
||||
'Lorem Ipsum is simply dummy text of the printing and typesetting '
|
||||
@@ -198,7 +199,7 @@ def letter_template():
|
||||
else:
|
||||
filename = 'no-branding'
|
||||
|
||||
template = {'subject': '', 'content': ''}
|
||||
template = {'subject': '', 'content': '', 'template_type': 'letter'}
|
||||
image_url = url_for('no_cookie.letter_branding_preview_image', filename=filename)
|
||||
|
||||
template_image = str(LetterImageTemplate(
|
||||
|
||||
Reference in New Issue
Block a user