update to check for instance of SerialisedService

This commit is contained in:
Rebecca Law
2021-02-18 12:54:22 +00:00
parent 88036befcf
commit b464894325
2 changed files with 2 additions and 3 deletions

View File

@@ -196,7 +196,7 @@ def get_html_email_options(service):
'govuk_banner': True,
'brand_banner': False,
}
if isinstance(service.email_branding, str):
if isinstance(service, SerialisedService):
branding = dao_get_email_branding_by_id(service.email_branding)
else:
branding = service.email_branding