From 3d5ec71b9ec144c5814b3aa96d86e19297b0687d Mon Sep 17 00:00:00 2001 From: srh-sloan Date: Thu, 19 Sep 2024 11:15:13 +0100 Subject: [PATCH] Correct index name after refactoring (#50) --- app/blueprints/fund_builder/routes.py | 4 ++-- app/blueprints/self_serve/routes.py | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/blueprints/fund_builder/routes.py b/app/blueprints/fund_builder/routes.py index c2bda87d..202514ee 100644 --- a/app/blueprints/fund_builder/routes.py +++ b/app/blueprints/fund_builder/routes.py @@ -204,7 +204,7 @@ def fund(): ) ) flash(f"Saved fund {form.name_en.data}") - return redirect(url_for("self_serve_bp.index")) + return redirect(url_for("build_fund_bp.index")) return render_template("fund.html", form=form) @@ -235,7 +235,7 @@ def round(): ) flash(f"Saved round {form.title_en.data}") - return redirect(url_for("self_serve_bp.index")) + return redirect(url_for("build_fund_bp.index")) return render_template( "round.html", diff --git a/app/blueprints/self_serve/routes.py b/app/blueprints/self_serve/routes.py index 39ca8b32..5b254854 100644 --- a/app/blueprints/self_serve/routes.py +++ b/app/blueprints/self_serve/routes.py @@ -114,7 +114,7 @@ def section(): if request.method == "POST" and form.validate_on_submit(): save_template_section(form.as_dict()) flash(message=f"Section '{form['builder_display_name'].data}' was saved") - return redirect(url_for("self_serve_bp.index")) + return redirect(url_for("build_fund_bp.index")) saved_forms = get_saved_forms() available_forms = [] @@ -149,7 +149,7 @@ def form(): } save_template_form(new_form) flash(message=f'Form {new_form["form_display_name"]} was saved') - return redirect(url_for("self_serve_bp.index")) + return redirect(url_for("build_fund_bp.index")) available_pages = [] pages = get_pages_to_display_in_builder() @@ -187,7 +187,7 @@ def page(): } save_template_page(new_page) flash(message=f"Page '{form.builder_display_name.data}' was saved") - return redirect(url_for("self_serve_bp.index")) + return redirect(url_for("build_fund_bp.index")) components = get_all_components() available_questions = [ { @@ -213,5 +213,5 @@ def question(): if request.method == "POST" and form.validate_on_submit(): save_template_component(question) flash(message=f"Question '{question['title']}' was saved") - return redirect(url_for("self_serve_bp.index")) + return redirect(url_for("build_fund_bp.index")) return render_template("create_question.html", form=form)