Merge pull request #2274 from alphagov/remove-service-branding-property

Remove `branding` attribute from service model
This commit is contained in:
Chris Hill-Scott
2018-08-31 14:13:57 +01:00
committed by GitHub

View File

@@ -270,7 +270,6 @@ class Service(dict):
ALLOWED_PROPERTIES = {
'active',
'branding',
'dvla_organisation',
'email_branding',
'email_from',
@@ -293,7 +292,7 @@ class Service(dict):
def __getattr__(self, attr):
if attr in self.ALLOWED_PROPERTIES:
return self[attr]
raise AttributeError
raise AttributeError('`{}` is not a service attribute'.format(attr))
@property
def trial_mode(self):