Redirect to license list on save

This commit is contained in:
rubenwardy 2018-07-28 17:34:00 +01:00
parent c737f58fc0
commit dfecf470fa
No known key found for this signature in database
GPG Key ID: A1E29D52FF81513C
1 changed files with 1 additions and 1 deletions

View File

@ -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)