mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 14:29:51 -04:00
Add count of live services to organisations
This makes it clear that these are something different to the trial mode services, in that they are a container of multiple things.
This commit is contained in:
@@ -270,7 +270,10 @@ class User(JSONModel, UserMixin):
|
||||
|
||||
@property
|
||||
def organisations(self):
|
||||
return self.orgs_and_services['organisations']
|
||||
return [
|
||||
Organisation.from_id(organisation['id'])
|
||||
for organisation in self.orgs_and_services['organisations']
|
||||
]
|
||||
|
||||
@property
|
||||
def organisation_ids(self):
|
||||
|
||||
Reference in New Issue
Block a user