We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea34352 commit 6b6a99aCopy full SHA for 6b6a99a
src/openklant/utils/validators.py
@@ -6,21 +6,6 @@
6
from localflavor.generic.countries.iso_3166 import ISO_3166_1_ALPHA2_COUNTRY_CODES
7
8
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
24
def validate_country(value: str) -> None:
25
"""
26
Validate an ISO 3166-1 alpha-2 country code
0 commit comments