Update branding request page

It was getting the brand_type from the service
model. This changes the controller to get it from
the new email_branding model instead.
This commit is contained in:
Tom Byers
2018-08-29 15:20:46 +01:00
parent 55f5cc8e1e
commit 272049bb17

View File

@@ -971,8 +971,11 @@ def link_service_to_organisation(service_id):
@user_has_permissions('manage_service')
def branding_request(service_id):
email_branding = email_branding_client.get_email_branding(
current_service.email_branding)['email_branding']
form = BrandingOptionsEmail(
options=current_service.branding
options=email_branding['brand_type']
)
if form.validate_on_submit():