Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Revert "Fix voucher shipping for 'Any Country' case"
Artur Smętcd0a6aec401e
diff --git a/saleor/discount/test_discounts.py b/saleor/discount/test_discounts.pyindex bfa6291bd0..f0c5620816 100644--- a/saleor/discount/test_discounts.py+++ b/saleor/discount/test_discounts.py@@ -98,7 +98,6 @@ def test_value_voucher_checkout_discount_not_applicable(settings):'shipping_cost, shipping_country_code, discount_value, discount_type, apply_to, expected_value', [ # noqa(10, None, 50, Voucher.DISCOUNT_VALUE_PERCENTAGE, None, 5),(10, None, 20, Voucher.DISCOUNT_VALUE_FIXED, None, 10),- (5, 'PL', 5, Voucher.DISCOUNT_VALUE_FIXED, None, 5),(5, 'PL', 5, Voucher.DISCOUNT_VALUE_FIXED, 'PL', 5)])def test_shipping_voucher_checkout_discount(settings, shipping_cost,shipping_country_code,diff --git a/saleor/shipping/models.py b/saleor/shipping/models.pyindex 0fa0fb0b7c..7dd2d1f405 100644--- a/saleor/shipping/models.py+++ b/saleor/shipping/models.py@@ -61,7 +61,7 @@ class ShippingMethodCountryQueryset(models.QuerySet):@python_2_unicode_compatibleclass ShippingMethodCountry(models.Model):- ANY_COUNTRY = None+ ANY_COUNTRY = ''COUNTRY_CODE_CHOICES = [(ANY_COUNTRY, _('Any country'))] + list(COUNTRIES.items())country_code = models.CharField(