Merge pull request #1853 from alphagov/pass-letter-date-to-template-preview

Pass date of letter to template preview
This commit is contained in:
Chris Hill-Scott
2018-05-04 10:52:47 +01:00
committed by GitHub
2 changed files with 23 additions and 8 deletions

View File

@@ -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,
}