Add active CLINS property to portfolio model

This commit is contained in:
graham-dds 2019-11-20 11:43:59 -05:00
parent d4cc887f80
commit 4f2a75b64f

View File

@ -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 (