mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-03-17 00:32:58 -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 = {
|
||||
'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):
|
||||
|
||||
Reference in New Issue
Block a user