mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-16 20:48:37 -04:00
fix placeholders not appearing in email subject
it now switches utils.template.Template type, since the base Template type now no longer has a subject attribute. updated test case to use `sample_email_template_with_placeholders` instead of `sample_email_template`
This commit is contained in:
@@ -218,12 +218,9 @@ def sample_email_template(
|
||||
'template_type': template_type,
|
||||
'content': content,
|
||||
'service': service,
|
||||
'created_by': user
|
||||
'created_by': user,
|
||||
'subject': subject_line
|
||||
}
|
||||
if subject_line:
|
||||
data.update({
|
||||
'subject': subject_line
|
||||
})
|
||||
template = Template(**data)
|
||||
dao_create_template(template)
|
||||
return template
|
||||
|
||||
Reference in New Issue
Block a user