Pass DVLA organisation ID through to Template

So that we know which organisation ID to spit out in the file.
This commit is contained in:
Chris Hill-Scott
2017-04-20 12:06:51 +01:00
parent d514d99a67
commit 5720f056ee
2 changed files with 3 additions and 1 deletions

View File

@@ -321,7 +321,8 @@ def create_dvla_file_contents(job_id):
notification.template.__dict__,
notification.personalisation,
notification_reference=notification.reference,
contact_block=notification.service.letter_contact_block
contact_block=notification.service.letter_contact_block,
org_id=notification.service.dvla_organisation.id,
))
for notification in dao_get_all_notifications_for_job(job_id)
)