mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 00:07:02 -04:00
Merge pull request #2274 from alphagov/remove-service-branding-property
Remove `branding` attribute from service model
This commit is contained in:
@@ -270,7 +270,6 @@ class Service(dict):
|
|||||||
|
|
||||||
ALLOWED_PROPERTIES = {
|
ALLOWED_PROPERTIES = {
|
||||||
'active',
|
'active',
|
||||||
'branding',
|
|
||||||
'dvla_organisation',
|
'dvla_organisation',
|
||||||
'email_branding',
|
'email_branding',
|
||||||
'email_from',
|
'email_from',
|
||||||
@@ -293,7 +292,7 @@ class Service(dict):
|
|||||||
def __getattr__(self, attr):
|
def __getattr__(self, attr):
|
||||||
if attr in self.ALLOWED_PROPERTIES:
|
if attr in self.ALLOWED_PROPERTIES:
|
||||||
return self[attr]
|
return self[attr]
|
||||||
raise AttributeError
|
raise AttributeError('`{}` is not a service attribute'.format(attr))
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def trial_mode(self):
|
def trial_mode(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user