Delete unused branch of logic in pr_attributes_read_oly()
This commit is contained in:
parent
1dbdb35e32
commit
aa206192be
@ -126,8 +126,7 @@ class ShowTaskOrderWorkflow:
|
||||
if self.task_order.portfolio.num_task_orders > 1:
|
||||
return True
|
||||
elif self.portfolio_id:
|
||||
if self.get_portfolio().num_task_orders > 0:
|
||||
return True
|
||||
return True
|
||||
return False
|
||||
|
||||
def get_portfolio(self):
|
||||
|
@ -44,7 +44,7 @@ def serialize_dates(data):
|
||||
|
||||
def test_new_to_can_edit_pf_attributes_screen_1():
|
||||
portfolio = PortfolioFactory.create()
|
||||
workflow = ShowTaskOrderWorkflow(user=portfolio.owner, portfolio_id=portfolio.id)
|
||||
workflow = ShowTaskOrderWorkflow(user=portfolio.owner)
|
||||
assert not workflow.pf_attributes_read_only()
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user