Delete User properties which are now no longer used

This commit is contained in:
Katie Smith
2021-03-16 15:45:21 +00:00
parent a33b6e0a0d
commit 82733d615f

View File

@@ -289,13 +289,6 @@ class User(JSONModel, UserMixin):
if self.belongs_to_organisation(service.organisation_id)
]
@property
def services_without_organisations(self):
return [
service for service in self.services
if not self.belongs_to_organisation(service.organisation_id)
]
@property
def service_ids(self):
return self._dict['services']
@@ -312,12 +305,6 @@ class User(JSONModel, UserMixin):
service for service in self.services if service.live
]
@property
def live_services_not_belonging_to_users_organisations(self):
return self.sort_services(
set(self.live_services).union(self.services_without_organisations)
)
@property
def organisations(self):
return [