mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 13:39:41 -04:00
refactor org model and removed enum
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user