Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Change shipping price_range method
Krzysztof Wolskiab6169c4b1c3
diff --git a/saleor/shipping/models.py b/saleor/shipping/models.pyindex ac05c147da..ee30cf7662 100644--- a/saleor/shipping/models.py+++ b/saleor/shipping/models.py@@ -40,7 +40,7 @@ class ShippingMethod(models.Model):@propertydef 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))