Remove legacy task order model

This commit is contained in:
Patrick Smith
2019-02-20 18:29:14 -05:00
parent 75f9b57979
commit 2d03111a9d
7 changed files with 49 additions and 204 deletions

View File

@@ -10,7 +10,6 @@ from atst.forms import data
from atst.models.attachment import Attachment
from atst.models.environment import Environment
from atst.models.application import Application
from atst.models.legacy_task_order import LegacyTaskOrder, Source, FundingType
from atst.models.task_order import TaskOrder
from atst.models.user import User
from atst.models.role import Role
@@ -100,25 +99,6 @@ class UserFactory(Base):
return cls.create(atat_role=role, **kwargs)
class LegacyTaskOrderFactory(Base):
class Meta:
model = LegacyTaskOrder
source = Source.MANUAL
funding_type = FundingType.PROC
funding_type_other = None
number = factory.LazyFunction(
lambda: "".join(random.choices(string.ascii_uppercase + string.digits, k=13))
)
expiration_date = factory.LazyFunction(random_future_date)
clin_0001 = random.randrange(100, 100_000)
clin_0003 = random.randrange(100, 100_000)
clin_1001 = random.randrange(100, 100_000)
clin_1003 = random.randrange(100, 100_000)
clin_2001 = random.randrange(100, 100_000)
clin_2003 = random.randrange(100, 100_000)
class PortfolioFactory(Base):
class Meta:
model = Portfolio