Pass letter logo filename to template preview

We now pass through `filename` to the Template Preview `/preview.<filetype>'
endpoint in addition to the `dvla_org_id`. Template Preview will be
changed to only use `filename`, and once this has been done, we can change
the code to only pass through `dvla_org_id` instead of passing through
both pieces of information.
This commit is contained in:
Katie Smith
2018-10-17 15:17:11 +01:00
parent c29dfecaa4
commit 0362265cb6
3 changed files with 6 additions and 1 deletions

View File

@@ -11,6 +11,7 @@ class TemplatePreview:
'letter_contact_block': template.get('reply_to_text', ''),
'template': template,
'values': values,
'filename': current_service.letter_logo_filename,
'dvla_org_id': current_service.dvla_organisation,
}
resp = requests.post(