Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix IE address form
Aleksander Spyrab8562a95dae1
diff --git a/saleor/account/i18n.py b/saleor/account/i18n.pyindex 1c516e0917..47bff6bb3e 100644--- a/saleor/account/i18n.py+++ b/saleor/account/i18n.py@@ -236,8 +236,9 @@ def update_base_fields(form_class, i18n_rules):field.placeholder = placeholder_valueif i18n_rules.country_area_choices:+ required = "country_area" in i18n_rules.required_fieldsform_class.base_fields["country_area"] = CountryAreaChoiceField(- choices=i18n_rules.country_area_choices+ choices=i18n_rules.country_area_choices, required=required)labels_map = {diff --git a/tests/test_account.py b/tests/test_account.pyindex 7a7a3fee24..1d25de5e81 100644--- a/tests/test_account.py+++ b/tests/test_account.py@@ -27,7 +27,7 @@ from saleor.account.utils import (from saleor.account.validators import validate_possible_number[email protected]("country", ["CN", "PL", "US"])[email protected]("country", ["CN", "PL", "US", "IE"])def test_address_form_for_country(country):data = {"first_name": "John",