Put current email branding in new branding request

When we get a request for new branding it’s helpful to quickly see what
the service’s current branding is, so we can get a better sense of why
they want to change it.
This commit is contained in:
Chris Hill-Scott
2019-03-06 15:27:43 +00:00
parent 906d0cbef8
commit ce1adce97a
4 changed files with 19 additions and 10 deletions

View File

@@ -363,6 +363,12 @@ class Service():
return email_branding_client.get_email_branding(self.email_branding_id)['email_branding']
return None
@cached_property
def email_branding_name(self):
if self.email_branding is None:
return 'GOV.UK'
return self.email_branding['name']
@property
def letter_branding_id(self):
return self._dict['letter_branding']