Create CLINs when creating a TO

This commit is contained in:
leigh-mil
2019-06-04 11:42:14 -04:00
parent 633e1b6a37
commit 36200e01ad
8 changed files with 161 additions and 33 deletions

View File

@@ -7,10 +7,10 @@ from atst.models import Base, mixins, types
class JEDICLINType(Enum):
JEDI_CLIN_1 = "jedi clin 0001"
JEDI_CLIN_2 = "jedi clin 0002"
JEDI_CLIN_3 = "jedi clin 0003"
JEDI_CLIN_4 = "jedi clin 0004"
JEDI_CLIN_1 = "JEDI_CLIN_1"
JEDI_CLIN_2 = "JEDI_CLIN_2"
JEDI_CLIN_3 = "JEDI_CLIN_3"
JEDI_CLIN_4 = "JEDI_CLIN_4"
class CLIN(Base, mixins.TimestampsMixin):

View File

@@ -34,7 +34,7 @@ class TaskOrder(Base, mixins.TimestampsMixin):
signer_dod_id = Column(String)
signed_at = Column(DateTime)
clins = relationship("CLIN")
clins = relationship("CLIN", back_populates="task_order")
@hybrid_property
def pdf(self):