From 55705ab68328ea1ea81c50b1b87706f8abe54015 Mon Sep 17 00:00:00 2001 From: spacenergy Date: Wed, 2 Mar 2016 10:11:15 +0600 Subject: [PATCH] auto --- store/cart.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/store/cart.py b/store/cart.py index 0ec3403..b04124f 100644 --- a/store/cart.py +++ b/store/cart.py @@ -9,7 +9,7 @@ class CartItem(object): self.item = item_variant self.price = int(item_variant.get_price(request.user)) self.count = int(count) - self.subtotal = self.get_price(request.user) * self.count + self.subtotal = self.get_price() * self.count if not id: self.id = str(uuid.uuid4()) @@ -97,7 +97,7 @@ class Cart(object): if item.count != request_count: self.total -= item.subtotal item.count = request_count - item.subtotal = item.get_price(self.request) * item.count + item.subtotal = item.get_price() * item.count self.total += item.subtotal self.serialize_items()