fix(deps): update dependency django-countries to v8#1150
Merged
renovate[bot] merged 1 commit intomainfrom Nov 4, 2025
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==7.6.1->==8.0.0Release Notes
SmileyChris/django-countries (django-countries)
v8.0.0Compare Source
Features
COUNTRIES_COMMON_NAMESis enabled (default).Bugfixes
Improved Documentation
autocomplete_fieldsin admin or third-party admin filter packages likemore_admin_filters. (#473)Deprecations and Removals
Misc
v7.9.1Compare Source
Bugfixes
COUNTRIES_OVERRIDEto support custom country codes that are 3 characters long. Previously, 3-character codes were incorrectly treated as alpha3 codes and resolved to existing countries. (#474)Note: This release was yanked because it inadvertently dropped Python 3.7 support without a major version bump. Use 8.0.0 or later instead.
v7.9Compare Source
Bugfixes
COUNTRIES_OVERRIDEto support custom country codes that are 3 characters long. Previously, 3-character codes were incorrectly treated as alpha3 codes and resolved to existing countries. (#474)Note: This release was yanked because it inadvertently dropped Python 3.7 support without a major version bump. Use 8.0.0 or later instead.
v7.8Compare Source
Where'd 7.7 go? Well 7.6 was accidentally bumped to 7.8 because of the new release process!
Note: This release was yanked because it inadvertently dropped Python 3.7 support without a major version bump. Use 8.0.0 or later instead.
Improved Documentation
Misc
just deploycommand and towncrier for changelog management.7.6.1 (2 April 2024)
7.6 (27 March 2024)
Replace deprecated
pkg_resources.iter_entry_pointswithimportlib_metadata.Support Django 5.0.
7.5.1 (1 February 2023)
Make
CountryFieldqueryset filters also work with country codes inaddition to names.
Switch to
pyproject.tomlrather thansetup.pyto fix installationissues with pip 23.0+.
7.5 (12 December 2022)
Rename Turkey to Türkiye.
A change in v7.4 introduced multi-choice countries being stored sorted and
deduplicated. This remains the default behaviour going forwards, but these
can now be overridden via arguments on the
CountryField.Improve translation fallback handling, fixing a threading race condition that
could cause odd translation issues. Thanks to Jan Wróblewski and Antoine
Fontaine for their help in resolving this.
This also fixes translation issues with older Python 3.6/3.7 versions.
Add Python 3.11, drop Python 3.6 and Django 2.2 support.
7.4.2 (10 October 2022)
USE_I18N = False.7.4.1 (7 October 2022)
7.4 (7 October 2022)
Fixed Traditional Chinese translation (needed to be
locale/zh_Hant).Update flag of Honduras.
Add Django 4.0 and 4.1 to the test matrix, dropping 3.0 and 3.1
Add Django Rest Framework 3.13 and 3.14, dropping 3.11.
Multi-choice countries are now stored sorted and with duplicates stripped.
Thanks flbraun and Jens Diemer!
Fix common country names not being honoured in non-English translations (only
fixed for Python 3.8+).
7.3.2 (4 March 2022)
for field comparisons.
filter(country="New Zealand")will no longer matchnow, but instead new
__nameand__inamefilters have been added toachieve this.
7.3.1 (1 March 2022)
7.3 (28 February 2022)
Person.objects.filter(country__icontains="zealand").7.2.1 (11 May 2021)
7.2 (10 May 2021)
Allow the character field to work with custom country codes that are not 2
characters (such as "GB-WLS").
Fix compatibility with
django-migrations-ignore-attrslibrary.7.1 (17 March 2021)
Allow customising the
str_attrof Country objects returned from aCountryField via a new
countries_str_attrkeyword argument (thanks C.Quentin).
Add
pyucaas an extra dependency, so that it can be installed likepip install django-countries[pyuca].Add Django 3.2 support.
7.0 (5 December 2020)
Add
name_onlyas an option to the Django Rest Framework serializer field(thanks Miguel Marques).
Add in Python typing.
Add Python 3.9, Django 3.1, and Django Rest Framework 3.12 support.
Drop Python 3.5 support.
Improve IOC code functionality, allowing them to be overridden in
COUNTRIES_OVERRIDEusing the complex dictionary format.6.1.3 (18 August 2020)
Update flag of Mauritania.
Add flag for Kosovo (under its temporary code of XK).
6.1.2 (26 March 2020)
6.1.1 (26 March 2020)
6.1 (20 March 2020)
Countryobject.6.0 (28 February 2020)
Make DRF CountryField respect
blank=False. This is a backwards incompatible change since blank input will nowreturn a validation error (unless
blankis explicitly set toTrue).Fix
COUNTRIES_OVERRIDEwhen using the complex dictionary format and a single name.Add bandit to the test suite for basic security analysis.
Drop Python 2.7 and Python 3.4 support.
Add Rest Framework 3.10 and 3.11 to the test matrix, remove 3.8.
Fix a memory leak when using PyUCA. Thanks Meiyer (aka interDist)!
5.5 (11 September 2019)
Django 3.0 compatibility.
Plugin system for extending the
Countryobject.5.4 (11 August 2019)
Renamed Macedonia -> North Macedonia.
Fix an outlying
makemigrationserror.Pulled in new translations which were provided but missing from previous
version.
Fixed Simplified Chinese translation (needed to be
locale/zh_Hans).Introduce an optional complex format for
COUNTRIES_ONLYandCOUNTRIES_OVERRIDEto allow for multiple names for a country, a customthree character code, and a custom numeric country code.
5.3.3 (16 February 2019)
5.3.2 (27 August 2018)
5.3.1 (12 June 2018)
dumpdataandloaddataforCountryField(multiple=True).5.3 (20 April 2018)
Countriesobject now returns named tuples. This makes thingsnicer when using
{% get_countries %}or using the country list elsewherein your code.
5.2 (9 March 2018)
Ensure Django 2.1 compatibility for
CountrySelectWidget.Fix regression introduced into 5.1 when using Django 1.8 and certain queryset
lookup types (like
__in).5.1.1 (31 January 2018)
5.1 (30 January 2018)
Tests now also cover Django Rest Framework 3.7 and Django 2.0.
Allow for creating country fields using (valid) alpha-3 or numeric codes.
Fix migration error with blank default (thanks Jens Diemer).
Add a
{% get_countries %}template tag (thanks Matija Čvrk).5.0 (10 October 2017)
multiple=Trueandnull=Truetogether. This causesproblems saving the field, and
nullshouldn't really be used anywaybecause the country field is a subclass of
CharField.4.6.2 (16 June 2017)
4.6.1 (16 June 2017)
4.6 (16 June 2017)
Add a
CountryFieldMixinDjango Rest Framework serializer mixin thatautomatically picks the right field type for a
CountryField(both singleand multi-choice).
Validation for Django Rest Framework field (thanks Simon Meers).
Allow case-insensitive
.by_name()matching (thanks again, Simon).Ensure a multiple-choice
CountryField.max_lengthis enough to hold allcountries.
Fix inefficient pickling of countries (thanks Craig de Stigter for the report
and tests).
Stop adding a blank choice when dealing with a multi-choice
CountryField.Tests now cover multiple Django Rest Framework versions (back to 3.3).
4.5 (18 April 2017)
Change rest framework field to be based on
ChoiceField.Allow for the rest framework field to deserialize by full country name
(specifically the English name for now).
4.4 (6 April 2017)
Fix for broken CountryField on certain models in Django 1.11.
Thanks aktiur for the test case.
Update tests to cover Django 1.11
4.3 (29 March 2017)
Handle "Czechia" translations in a nicer way (fall back to "Czech Republic"
until new translations are available).
Fix for an import error in Django 1.9+ due to use of non-lazy
ugettextinthe django-countries custom admin filter.
Back to 100% test coverage.
4.2 (10 March 2017)
Country.flag_cssproperty) to help minimizeHTTP requests.
4.1 (22 February 2017)
Better default Django admin filter when filtering a country field in a
ModelAdmin.Fix settings to support Django 1.11
Fix when using a model instance with a deferred country field.
Allow
CountryFieldto handle multiple countries at once!Allow CountryField to still work if Deferred.
Fix a field with customized country list. Thanks pilmie!
4.0.1 (16 August 2016)
COUNTRIES_FIRST_SORT(feature still worked, tests didn't).4.0 (16 August 2016)
Django supported versions are now 1.8+
Drop legacy code
Fix tests, 100% coverage
IOS / OSX unicode flags function
Fix widget choices on Django 1.9+
Add
COUNTRIES_FIRST_SORT. Thanks Edraak!3.4.1 (22 October 2015)
3.4 (22 October 2015)
Extend test suite to cover Django 1.8
Fix XSS escaping issue in CountrySelectWidget
Common name changes: fix typo of Moldova, add United Kingdom
Add
{% get_country %}template tag.New
CountryFieldDjango Rest Framework serializer field.3.3 (30 Mar 2015)
Add the attributes to
Countriesclass that can override the defaultsettings.
CountriesField can now be passed a custom countries subclass to use, which
combined with the previous change allows for different country choices for
different fields.
Allow
COUNTRIES_ONLYto also accept just country codes in its list(rather than only two-tuples), looking up the translatable country name from
the full country list.
Fix Montenegro flag size (was 12px high rather than the standard 11px).
Fix outdated ISO country name formatting for Bolivia, Gambia, Holy See,
Iran, Micronesia, and Venezuela.
3.2 (24 Feb 2015)
Fixes initial iteration failing for a fresh
Countriesobject.Fix widget's flag URLs (and use ensure widget is HTML encoded safely).
Add
countries.by_name(country, language='en')method, allowing lookup ofa country code by its full country name. Thanks Josh Schneier.
3.1.1 (15 Jan 2015)
CHANGES.rstwasn't in the manifest)3.1 (15 Jan 2015)
Start change log :)
Add a
COUNTRIES_FIRSTsetting (and some other related ones) to allow forspecific countries to be shown before the entire alphanumeric list.
Add a
blank_labelargument toCountryFieldto allow customization ofthe label shown in the initial blank choice shown in the select widget.
3.0.2 (29 Dec 2014)
CountrySelectWidgetfailing when used with a model form that ispassed a model instance.
3.0.1 (27 Oct 2014)
Revert descriptor to always return a Country object.
Fix the
CountryFieldwidget choices appearing empty due to a translationchange in v3.0.
3.0 (22 Oct 2014)
Django supported versions are now 1.4 (LTS) and 1.6+
Add
COUNTRIES_ONLYsetting to restrict to a specific list of countries.Optimize country name translations to avoid exessive translation calls that
were causing a notable performance impact.
PyUCA integration, allowing for more accurate sorting across all locales.
Also, a better sorting method when PyUCA isn't installed.
Better tests (now at 100% test coverage).
Add a
COUNTRIES_FLAG_URLsetting to allow custom flag urls.Support both IOC and numeric country codes, allowing more flexible lookup of
countries and specific code types.
Field descriptor now returns
Noneif no country matches (reverted inv3.0.1)
2.1.2 (28 Mar 2014)
2.1.1 (28 Mar 2014)
2.1 (24 Mar 2014)
Add IOC (3 letter) country codes.
Fix bug when loading fixtures.
2.0 (18 Feb 2014)
This is the first entry to the change log. The previous was 1.5,
released 19 Nov 2012.
Optimized flag images, adding flags missing from original source.
Better storage of settings and country list.
New country list format for fields.
Better tests.
Changed
COUNTRIES_FLAG_STATICsetting toCOUNTRIES_FLAG_URL.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.