mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 18:31:13 -05:00
Pass date of letter to template preview
Otherwise all letters will show the current date. Also beefed up the tests around this part of the code a bit.
This commit is contained in:
@@ -247,6 +247,7 @@ def preview_letter_template_by_notification_id(service_id, notification_id, file
|
||||
'letter_contact_block': notification.reply_to_text,
|
||||
'template': template_for_letter_print,
|
||||
'values': notification.personalisation,
|
||||
'date': notification.created_at.isoformat(),
|
||||
'dvla_org_id': service.dvla_organisation_id,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user