Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix whitespaces
Marcin Gębala33ad58c37e7c
diff --git a/saleor/product/models/variants.py b/saleor/product/models/variants.pyindex 2978bfc3ba..1f53fa6cfe 100644--- a/saleor/product/models/variants.py+++ b/saleor/product/models/variants.py@@ -57,7 +57,7 @@ class PhysicalProduct(models.Model):return self.weightexcept AttributeError:return self.product.weight-+class Meta:abstract = Trueapp_label = 'product'@@ -98,13 +98,13 @@ class ProductVariant(models.Model, Item):modifier = max(discounts)price += modifierreturn price-+def get_weight(self):try:return self.weightexcept AttributeError:return self.product.weight-+def get_absolute_url(self):slug = self.product.get_slug()product_id = self.product.id