Skip to content

Commit 6b6a99a

Browse files
[#311] Fix merge
1 parent ea34352 commit 6b6a99a

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/openklant/utils/validators.py

-15
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,6 @@
66
from localflavor.generic.countries.iso_3166 import ISO_3166_1_ALPHA2_COUNTRY_CODES
77

88

9-
def validate_country(value: str) -> None:
10-
"""
11-
Validate an ISO 3166-1 alpha-2 country code
12-
13-
:param value:
14-
:return: None if validation passed. Otherwise, raises a ``ValidationError`` exception.
15-
"""
16-
if value not in ISO_3166_1_ALPHA2_COUNTRY_CODES:
17-
raise ValidationError(
18-
_("Ongeldige landcode, de code moet behoren tot de ISO 3166-standaard")
19-
)
20-
21-
from localflavor.generic.countries.iso_3166 import ISO_3166_1_ALPHA2_COUNTRY_CODES
22-
23-
249
def validate_country(value: str) -> None:
2510
"""
2611
Validate an ISO 3166-1 alpha-2 country code

0 commit comments

Comments
 (0)