download link for task order summary

This commit is contained in:
dandds
2018-12-20 10:41:54 -05:00
parent 59510819e7
commit 718f88d828
7 changed files with 55 additions and 5 deletions

View File

@@ -57,9 +57,13 @@ class TaskOrder(Base, mixins.TimestampsMixin):
self.number, self.budget, self.end_date, self.id
)
@property
def portfolio_name(self):
return self.workspace.name
def to_dictionary(self):
return {
"portfolio_name": self.workspace.name,
"portfolio_name": self.portfolio_name,
**{
c.name: getattr(self, c.name)
for c in self.__table__.columns