Add num_task_orders property

This commit is contained in:
Montana 2019-03-06 14:26:40 -05:00
parent 16e3d5d36c
commit 4a100f913f

View File

@ -36,6 +36,10 @@ class Portfolio(Base, mixins.TimestampsMixin, mixins.AuditableMixin):
def user_count(self):
return len(self.members)
@property
def num_task_orders(self):
return len(self.task_orders)
@property
def members(self):
return (