Set template subject to Provided as PDF for precompiled letters

- easier to change the text in Admin rather than do a database update on API and should be easy to change if the text should change in the future
This commit is contained in:
Ken Tsang
2018-03-09 12:32:36 +00:00
parent 60a79131e6
commit 89a04aa6a0
3 changed files with 30 additions and 0 deletions

View File

@@ -399,6 +399,8 @@ def add_preview_of_content_to_notifications(notifications):
**notification
)
else:
if notification['template']['is_precompiled_letter']:
notification['template']['subject'] = 'Provided as PDF'
yield dict(
preview_of_content=(
WithSubjectTemplate(