Skip to content

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

Add changelog

Ania Warzechade5aac05cc7b
diff --git a/CHANGELOG.md b/CHANGELOG.md
index a04488ffc8..0c4fdd6ab1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -22,9 +22,9 @@ All notable, unreleased changes to this project will be documented in this file.
- Unify how undiscounted prices are handled in orders and checkouts - #14780 by @jakubkuc
- Drop demo - #14835 by @fowczarek
- Add JSON serialization immediately after creating observability events to eliminate extra cPickle serialization and deserialization steps - #14992 by @przlada
-
- Added caching of GraphQL documents for common queries to improve performance - #14843 by @patrys
- Added `VOUCHER_CODES_CREATED` and `VOUCHER_CODES_DELETED` webhooks events. - #14652 by @SzymJ
+- Fixed validation for streetAddress1 or streetAddress2 are too long - #13973 by sonbui00
# 3.18.0
diff --git a/saleor/account/i18n.py b/saleor/account/i18n.py
index a6b447e8b5..97d6255594 100644
--- a/saleor/account/i18n.py
+++ b/saleor/account/i18n.py
@@ -173,9 +173,7 @@ class CountryAwareAddressForm(AddressForm):
def validate_address(self, data):
try:
data["country_code"] = data.get("country", "")
- data["street_address"] = "\n".join(
- [data.get("street_address_1", ""), data.get("street_address_2", "")]
- )
+ data["street_address"] = f'{data.get("street_address_1", "")}\n{data.get("street_address_2", "")}'
normalized_data = i18naddress.normalize_address(data)
if getattr(self, "enable_normalization", True):
data = normalized_data