Merge pull request #1946 from alphagov/ken-show-provided-as-pdf-for-precompiled-letters

Set template subject to Provided as PDF for precompiled letters
This commit is contained in:
kentsanggds
2018-03-12 10:47:05 +00:00
committed by GitHub
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(