def update_store_orders_for_order(request, pk): # if request.method == 'POST': order = Order.objects.get(pk=pk) StoreOrder.update_for_order(order) return redirect('/shop/cart/')
def set_store_order(sender,instance,**kwargs): StoreOrder.update_for_order(instance)