Skip to content

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

Change shipping price_range method

Krzysztof Wolskiab6169c4b1c3
diff --git a/saleor/shipping/models.py b/saleor/shipping/models.py
index ac05c147da..ee30cf7662 100644
--- a/saleor/shipping/models.py
+++ b/saleor/shipping/models.py
@@ -40,7 +40,7 @@ class ShippingMethod(models.Model):
@property
def price_range(self):
- prices = list(self.price_per_country.values_list('price', flat=True))
+ prices = [country.price for country in self.price_per_country.all()]
if prices:
return PriceRange(min(prices), max(prices))