Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Remove comment
Michal Ociepkac644219574a1
diff --git a/delivery/__init__.py b/delivery/__init__.pyindex 9cf8f836b4..635d2b3275 100644--- a/delivery/__init__.py+++ b/delivery/__init__.py@@ -18,10 +18,9 @@ class DummyShipping(BaseDelivery):return u'Dummy shipping'def get_price_per_item(self, **kwargs):- # I don't getting good product class- #weight = sum(grup.product.weight for grup in self.group)- qty = sum(grup.quantity for grup in self.group)- return Price(qty, currency=settings.SATCHLESS_DEFAULT_CURRENCY)+ weight = sum(line.product.weight for line in self.group)+ qty = sum(line.quantity for line in self.group)+ return Price(qty*weight, currency=settings.SATCHLESS_DEFAULT_CURRENCY)class DigitalDelivery(BaseDelivery):