mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 15:57:23 -04:00
Use service model to look up service attributes
This is better than just keying into the JSON because it means you get an exception straight away when looking up a key that doesn’t exist (which via mocking you could ordinarily miss).
This commit is contained in:
@@ -11,7 +11,7 @@ class TemplatePreview:
|
||||
'letter_contact_block': template.get('reply_to_text', ''),
|
||||
'template': template,
|
||||
'values': values,
|
||||
'dvla_org_id': current_service['dvla_organisation'],
|
||||
'dvla_org_id': current_service.dvla_organisation,
|
||||
}
|
||||
resp = requests.post(
|
||||
'{}/preview.{}{}'.format(
|
||||
|
||||
Reference in New Issue
Block a user