Remove govuk from possible brands

‘GOV.UK’ doesn’t make sense as a type of brand. It only made sense as
a type of branding that a service had.

Since we’ve:
- deprecated the service branding column
- made sure it’s not used as a value in the email branding table

we can remove this value from the table of possible brand types.
This commit is contained in:
Chris Hill-Scott
2018-08-30 16:22:59 +01:00
parent 337496c5bc
commit 0c47d41977
5 changed files with 35 additions and 23 deletions

View File

@@ -188,11 +188,11 @@ user_to_organisation = db.Table(
)
BRANDING_GOVUK = 'govuk'
BRANDING_GOVUK = 'govuk' # Deprecated outside migrations
BRANDING_ORG = 'org'
BRANDING_BOTH = 'both'
BRANDING_ORG_BANNER = 'org_banner'
BRANDING_TYPES = [BRANDING_GOVUK, BRANDING_ORG, BRANDING_BOTH, BRANDING_ORG_BANNER]
BRANDING_TYPES = [BRANDING_ORG, BRANDING_BOTH, BRANDING_ORG_BANNER]
class BrandingTypes(db.Model):
@@ -213,7 +213,7 @@ class EmailBranding(db.Model):
db.ForeignKey('branding_type.name'),
index=True,
nullable=True,
default=BRANDING_GOVUK
default=BRANDING_ORG
)
def serialize(self):