This commit is contained in:
Feliciaan De Palmenaer 2015-06-04 19:13:09 +02:00
parent 50a8714c51
commit 333a7ec5ec

View file

@ -63,6 +63,7 @@ def order_edit(id):
return redirect(url_for('.order', id=order.id))
return render_template('order_edit.html', form=orderForm, order_id=id)
@order_bp.route('/<id>/create', methods=['POST'])
def order_item_create(id):
current_order = Order.query.filter(Order.id == id).first()
@ -90,7 +91,6 @@ def order_item_create(id):
return order(id, form=form)
@order_bp.route('/<order_id>/<item_id>/delete')
def delete_item(order_id, item_id):
item = OrderItem.query.filter(OrderItem.id == item_id).first()