Tell people to change their branding

In some cases it’s not appropriate for teams to have GOV.UK branding.
But they all start with it by default, if we can’t make a better guess.
We should be more explicit about this to reduce the number of teams
sending emails with the wrong branding.
This commit is contained in:
Chris Hill-Scott
2019-09-12 14:53:40 +01:00
parent 86e3da043f
commit 077dc194c6
2 changed files with 11 additions and 1 deletions

View File

@@ -417,6 +417,10 @@ class Service(JSONModel):
return 'GOV.UK'
return self.email_branding['name']
@property
def needs_to_change_email_branding(self):
return self.email_branding_id is None and self.organisation_type != 'central'
@property
def letter_branding_id(self):
return self._dict['letter_branding']