Fix TO form unchecking steps after validation fails

This commit is contained in:
George Drummond 2019-01-17 09:35:05 -05:00
parent 1ee0c11a63
commit 0bb1f1a7f5
No known key found for this signature in database
GPG Key ID: 296DD6077123BF17
2 changed files with 3 additions and 4 deletions

View File

@ -262,6 +262,6 @@ def update(screen, task_order_id=None, portfolio_id=None):
current=screen, current=screen,
task_order_id=task_order_id, task_order_id=task_order_id,
portfolio_id=portfolio_id, portfolio_id=portfolio_id,
screens=TASK_ORDER_SECTIONS, screens=workflow.display_screens,
form=workflow.form, form=workflow.form,
) )

View File

@ -100,11 +100,10 @@ def test_create_new_task_order_for_portfolio(client, user_session):
def test_task_order_form_shows_errors(client, user_session): def test_task_order_form_shows_errors(client, user_session):
creator = UserFactory.create() to = task_order()
creator = to.creator
user_session(creator) user_session(creator)
to = TaskOrderFactory.create()
task_order_data = TaskOrderFactory.dictionary() task_order_data = TaskOrderFactory.dictionary()
funding_data = slice_data_for_section(task_order_data, "funding") funding_data = slice_data_for_section(task_order_data, "funding")
funding_data = serialize_dates(funding_data) funding_data = serialize_dates(funding_data)