diff options
author | rubenwardy <rw@rubenwardy.com> | 2018-07-28 17:34:00 +0100 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2018-07-28 17:34:00 +0100 |
commit | dfecf470fa6dffb41c75c13dbacaeefe9cee721c (patch) | |
tree | 713a70b3634a033259213ae4f783f9a48251439f /app | |
parent | c737f58fc0dd3bbbb8cc2c0b37c39be73ba18554 (diff) | |
download | cheatdb-dfecf470fa6dffb41c75c13dbacaeefe9cee721c.tar.xz |
Redirect to license list on save
Diffstat (limited to 'app')
-rw-r--r-- | app/views/licenseseditor.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/licenseseditor.py b/app/views/licenseseditor.py index 9f1a0ce..c4a1b56 100644 --- a/app/views/licenseseditor.py +++ b/app/views/licenseseditor.py @@ -57,6 +57,6 @@ def createedit_license_page(name=None): form.populate_obj(license) db.session.commit() - return redirect(url_for("createedit_license_page", name=license.name)) + return redirect(url_for("license_list_page")) return render_template("admin/licenses/edit.html", license=license, form=form) |