delete redirect change

geo
Alexander Roidl 2 years ago
parent 8698ffee6d
commit e5967f8d10

Binary file not shown.

@ -146,7 +146,7 @@ def delete_location(id):
if request.method == 'GET': if request.method == 'GET':
Location.query.filter_by(id=id).delete() Location.query.filter_by(id=id).delete()
db.session.commit() db.session.commit()
return redirect(url_for('home')) return redirect(url_for('list_locations'))
@app.route('/books/<int:id>') @app.route('/books/<int:id>')

Loading…
Cancel
Save