refactor org model and removed enum

This commit is contained in:
Beverly Nguyen
2025-10-20 12:11:01 -07:00
parent d73d4d17d0
commit afef4978f9
3 changed files with 10 additions and 30 deletions

View File

@@ -103,7 +103,11 @@ class Organization(JSONModel, SortByNameMixin):
@property
def trial_services(self):
return [s for s in self.services if not s["active"] or s["restricted"]]
return [s for s in self.services if s["active"] and s["restricted"]]
@property
def suspended_services(self):
return [s for s in self.services if not s["active"]]
@cached_property
def invited_users(self):