From 02fa120dba7deb98afc77154d75a5838523cc1c7 Mon Sep 17 00:00:00 2001 From: Gena Date: Thu, 2 Jul 2015 11:14:03 +0600 Subject: [PATCH] auto --- store/cart.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store/cart.py b/store/cart.py index 63d812c..d05e7e5 100644 --- a/store/cart.py +++ b/store/cart.py @@ -52,7 +52,7 @@ class Cart(object): variation, j['count'], j['id']) self.items.append(item) self.total += int(item.subtotal) - self.weight += variation.weight + self.weight += variation.weight * j['count'] return self def serialize_items(self):