Move UII form workaround into a form method

This commit is contained in:
richard-dds
2018-08-16 16:55:58 -04:00
parent 66eb44afdd
commit b41cfa0955
2 changed files with 8 additions and 2 deletions

View File

@@ -32,12 +32,12 @@ def update_financial_verification(request_id):
if valid:
return redirect(url_for("requests.financial_verification_submitted"))
else:
# TODO: This is a horrible workaround.
form.uii_ids.process_data(form.uii_ids.data)
form.reset()
return render_template(
"requests/financial_verification.html", **rerender_args
)
else:
form.reset()
return render_template("requests/financial_verification.html", **rerender_args)