Render pdf in existing TO

This commit is contained in:
leigh-mil 2019-06-07 15:35:34 -04:00
parent 732830a500
commit 42970ded6f

View File

@ -129,6 +129,7 @@ class TaskOrder(Base, mixins.TimestampsMixin):
def to_dictionary(self): def to_dictionary(self):
return { return {
"portfolio_name": self.portfolio_name, "portfolio_name": self.portfolio_name,
"pdf": self.pdf,
"clins": [ "clins": [
clin.to_dictionary() for clin in self.clins clin.to_dictionary() for clin in self.clins
], ],