mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-11 09:28:27 -04:00
Make a model collection for services
This is tidier than having a manual loop.
This commit is contained in:
@@ -292,10 +292,8 @@ class User(JSONModel, UserMixin):
|
||||
|
||||
@property
|
||||
def services(self):
|
||||
from app.models.service import Service
|
||||
return [
|
||||
Service(service) for service in self.orgs_and_services['services']
|
||||
]
|
||||
from app.models.service import Services
|
||||
return Services(self.orgs_and_services['services'])
|
||||
|
||||
@property
|
||||
def services_with_organisation(self):
|
||||
|
||||
Reference in New Issue
Block a user