aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-07-28 17:34:00 +0100
committerrubenwardy <rw@rubenwardy.com>2018-07-28 17:34:00 +0100
commitdfecf470fa6dffb41c75c13dbacaeefe9cee721c (patch)
tree713a70b3634a033259213ae4f783f9a48251439f /app
parentc737f58fc0dd3bbbb8cc2c0b37c39be73ba18554 (diff)
downloadcheatdb-dfecf470fa6dffb41c75c13dbacaeefe9cee721c.tar.xz
Redirect to license list on save
Diffstat (limited to 'app')
-rw-r--r--app/views/licenseseditor.py2
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)