Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix whitespaces

Marcin Gębala33ad58c37e7c
diff --git a/saleor/product/models/variants.py b/saleor/product/models/variants.py
index 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.weight
except AttributeError:
return self.product.weight
-
+
class Meta:
abstract = True
app_label = 'product'
@@ -98,13 +98,13 @@ class ProductVariant(models.Model, Item):
modifier = max(discounts)
price += modifier
return price
-
+
def get_weight(self):
try:
return self.weight
except AttributeError:
return self.product.weight
-
+
def get_absolute_url(self):
slug = self.product.get_slug()
product_id = self.product.id