mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-31 11:49:58 -04:00
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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user