Add active CLINS property to portfolio model
This commit is contained in:
parent
d4cc887f80
commit
4f2a75b64f
@ -65,6 +65,15 @@ class Portfolio(
|
||||
def num_task_orders(self):
|
||||
return len(self.task_orders)
|
||||
|
||||
@property
|
||||
def active_clins(self):
|
||||
return [
|
||||
clin
|
||||
for task_order in self.task_orders
|
||||
for clin in task_order.clins
|
||||
if clin.is_active
|
||||
]
|
||||
|
||||
@property
|
||||
def members(self):
|
||||
return (
|
||||
|
Loading…
x
Reference in New Issue
Block a user