Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Be compatibile with i18n API
Artur Smęt9d3fe9301635
diff --git a/saleor/i18n_address_forms/forms.py b/saleor/i18n_address_forms/forms.pyindex ddf1937af8..ec6cda3e9d 100644--- a/saleor/i18n_address_forms/forms.py+++ b/saleor/i18n_address_forms/forms.py@@ -39,6 +39,7 @@ class CountryAwareAddressForm(AddressForm):def validate_address(self, data):try:+ data['country_code'] = data['country']i18naddress.normalize_address(data)except i18naddress.InvalidAddress as exc:self.add_field_errors(exc.errors)