Add TODO about handling form validation failures

This commit is contained in:
leigh-mil 2019-04-24 11:30:33 -04:00
parent c6cf4d7641
commit addd1c07c3

View File

@ -107,6 +107,9 @@ def update_env_roles(application_id):
)
return redirect(url_for("applications.settings", application_id=application.id))
else:
# TODO: Create a better pattern to handle when a form doesn't validate
# if a user is submitting the data via the web page then they
# should never have any form validation errors
return render_template(
"portfolios/applications/edit.html",
application=application,