Add defense_component to Portfolio when new task_order is created without an existing portfolio
This commit is contained in:
@@ -53,7 +53,6 @@ class TaskOrder(Base, mixins.TimestampsMixin):
|
||||
dd_254 = relationship("DD254")
|
||||
|
||||
scope = Column(String) # Cloud Project Scope
|
||||
defense_component = Column(String) # Department of Defense Component
|
||||
app_migration = Column(String) # App Migration
|
||||
native_apps = Column(String) # Native Apps
|
||||
complexity = Column(ARRAY(String)) # Application Complexity
|
||||
@@ -172,6 +171,10 @@ class TaskOrder(Base, mixins.TimestampsMixin):
|
||||
def portfolio_name(self):
|
||||
return self.portfolio.name
|
||||
|
||||
@property
|
||||
def defense_component(self):
|
||||
return self.portfolio.defense_component
|
||||
|
||||
@property
|
||||
def is_pending(self):
|
||||
return self.status == Status.PENDING
|
||||
|
Reference in New Issue
Block a user