Merge pull request #209 from dod-ccpo/fix-project-new-url

Invalid project form submission should still route to projects/new
This commit is contained in:
richard-dds 2018-08-23 17:07:56 -04:00 committed by GitHub
commit 5bce62073c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,7 +59,7 @@ def new_project(workspace_id):
return render_template("workspace_project_new.html", workspace=workspace, form=form)
@bp.route("/workspaces/<workspace_id>/projects", methods=["POST"])
@bp.route("/workspaces/<workspace_id>/projects/new", methods=["POST"])
def update_project(workspace_id):
workspace = Workspaces.get_for_update(g.current_user, workspace_id)
form = NewProjectForm(http_request.form)