Set default branding for NHS services

The NHS is a special case because it’s not one organisation, but it does
have one consistent brand. So anyone working for an NHS organisation
should have their default branding set when they create a service, even
if we know nothing about their specific organisation.
This commit is contained in:
Chris Hill-Scott
2019-04-08 10:27:26 +01:00
parent 46c2f6a4ac
commit 5a7de22f55
5 changed files with 66 additions and 3 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ def dao_get_email_branding_by_id(email_branding_id):
def dao_get_email_branding_by_name(email_branding_name):
return EmailBranding.query.filter_by(name=email_branding_name).one()
return EmailBranding.query.filter_by(name=email_branding_name).first()
@transactional