Fix setting and display of letter branding

API and Admin were not using the same name for the organisation ID that
we have set with DVLA.
This commit is contained in:
Chris Hill-Scott
2017-04-24 14:46:19 +01:00
parent eb9214978e
commit f3e69a808e
2 changed files with 2 additions and 2 deletions

View File

@@ -45,7 +45,7 @@ def service_settings(service_id):
'views/service-settings.html',
organisation=organisation,
letter_branding=letter_branding_organisations.get(
current_service.get('dvla_org_id', '001')
current_service.get('dvla_organisation', '001')
)
)

View File

@@ -92,7 +92,7 @@ class ServiceAPIClient(NotifyAdminAPIClient):
'branding',
'organisation',
'letter_contact_block',
'dvla_org_id',
'dvla_organisation',
}
if disallowed_attributes:
raise TypeError('Not allowed to update service attributes: {}'.format(