mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 23:55:58 -05:00
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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user