mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-18 13:39:57 -04:00
Remove branding attribute from service model
To correspond with us dropping this column from the database. Remove the attribute from the model gives us more confidence that it’s not being used (because it will raise exceptions in any tests that refer to it).
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