Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added serbia, kosovo, montenegro and curacao #8

Merged
merged 1 commit into from
Jan 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions django_country_kit/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
"CI": {"name": _("Cote D'Ivoire"), "alpha3": "CIV"},
"HR": {"name": _("Croatia"), "alpha3": "HRV"},
"CU": {"name": _("Cuba"), "alpha3": "CUB"},
"CW": {"name": _("Curaçao"), "alpha3": "CUW"},
"CY": {"name": _("Cyprus"), "alpha3": "CYP"},
"CZ": {"name": _("Czech Republic"), "alpha3": "CZE"},
"DK": {"name": _("Denmark"), "alpha3": "DNK"},
Expand Down Expand Up @@ -147,6 +148,7 @@
"KI": {"name": _("Kiribati"), "alpha3": "KIR"},
"KP": {"name": _("Korea, Democratic People's Republic of"), "alpha3": "PRK"},
"KR": {"name": _("Korea, Republic of"), "alpha3": "KOR"},
"XK": {"name": _("Kosovo"), "alpha3": "XKX"},
"KW": {"name": _("Kuwait"), "alpha3": "KWT"},
"KG": {"name": _("Kyrgyzstan"), "alpha3": "KGZ"},
"LA": {"name": _("Lao People's Democratic Republic"), "alpha3": "LAO"},
Expand Down Expand Up @@ -176,6 +178,7 @@
"MD": {"name": _("Moldova, Republic of"), "alpha3": "MDA"},
"MC": {"name": _("Monaco"), "alpha3": "MCO"},
"MN": {"name": _("Mongolia"), "alpha3": "MNG"},
"ME": {"name": _("Montenegro"), "alpha3": "MNE"},
"MS": {"name": _("Montserrat"), "alpha3": "MSR"},
"MA": {"name": _("Morocco"), "alpha3": "MAR"},
"MZ": {"name": _("Mozambique"), "alpha3": "MOZ"},
Expand Down Expand Up @@ -222,7 +225,7 @@
"ST": {"name": _("Sao Tome and Principe"), "alpha3": "STP"},
"SA": {"name": _("Saudi Arabia"), "alpha3": "SAU"},
"SN": {"name": _("Senegal"), "alpha3": "SEN"},
"CS": {"name": _("Serbia and Montenegro"), "alpha3": "SCG"},
"RS": {"name": _("Serbia"), "alpha3": "SRB"},
"SC": {"name": _("Seychelles"), "alpha3": "SYC"},
"SL": {"name": _("Sierra Leone"), "alpha3": "SLE"},
"SG": {"name": _("Singapore"), "alpha3": "SGP"},
Expand Down Expand Up @@ -291,6 +294,6 @@ def get_countries():

include_countries = getattr(settings, "INCLUDE_COUNTRIES", [])
if include_countries:
countries = countries.update(include_countries)
countries = countries | include_countries

return countries
return dict(sorted(countries.items(), key=lambda x: x[1]['name']))
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

setup(
name='django-country-kit',
version="0.0.1",
version="0.0.2",
author='Pescheck IT',
author_email='[email protected]',
description='Countries for django',
Expand Down
Loading