add expiration_date to manual task order form

This commit is contained in:
dandds
2018-09-17 16:27:41 -04:00
parent f984c95060
commit a2e8caf23b
8 changed files with 60 additions and 2 deletions

View File

@@ -170,6 +170,11 @@ class TaskOrderFactory(Base):
funding_type = FundingType.PROC
funding_type_other = None
number = "toABC123"
expiration_date = factory.LazyFunction(
lambda: datetime.date(
datetime.date.today().year + random.randrange(1, 15), 1, 1
)
)
clin_0001 = random.randrange(100, 100000)
clin_0003 = random.randrange(100, 100000)
clin_1001 = random.randrange(100, 100000)