spacing
This commit is contained in:
parent
50a8714c51
commit
333a7ec5ec
1 changed files with 1 additions and 1 deletions
|
@ -63,6 +63,7 @@ def order_edit(id):
|
||||||
return redirect(url_for('.order', id=order.id))
|
return redirect(url_for('.order', id=order.id))
|
||||||
return render_template('order_edit.html', form=orderForm, order_id=id)
|
return render_template('order_edit.html', form=orderForm, order_id=id)
|
||||||
|
|
||||||
|
|
||||||
@order_bp.route('/<id>/create', methods=['POST'])
|
@order_bp.route('/<id>/create', methods=['POST'])
|
||||||
def order_item_create(id):
|
def order_item_create(id):
|
||||||
current_order = Order.query.filter(Order.id == id).first()
|
current_order = Order.query.filter(Order.id == id).first()
|
||||||
|
@ -90,7 +91,6 @@ def order_item_create(id):
|
||||||
return order(id, form=form)
|
return order(id, form=form)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@order_bp.route('/<order_id>/<item_id>/delete')
|
@order_bp.route('/<order_id>/<item_id>/delete')
|
||||||
def delete_item(order_id, item_id):
|
def delete_item(order_id, item_id):
|
||||||
item = OrderItem.query.filter(OrderItem.id == item_id).first()
|
item = OrderItem.query.filter(OrderItem.id == item_id).first()
|
||||||
|
|
Loading…
Reference in a new issue