Skip to content

Update django-countries to 7.8#881

Closed
pyup-bot wants to merge 1 commit into
masterfrom
pyup-update-django-countries-6.1.2-to-7.8
Closed

Update django-countries to 7.8#881
pyup-bot wants to merge 1 commit into
masterfrom
pyup-update-django-countries-6.1.2-to-7.8

Conversation

@pyup-bot

@pyup-bot pyup-bot commented Nov 4, 2025

Copy link
Copy Markdown
Collaborator

This PR updates django-countries from 6.1.2 to 7.8.

Changelog

7.7

================

- Nothing changed yet.

7.6.2

==================

- Nothing changed yet.

7.6.1

====================

- Fix a TypeError when no country is selected, introduced in the Django 5 fix.

7.6

===================

- Replace deprecated ``pkg_resources.iter_entry_points`` with
``importlib_metadata``.

- Support Django 5.0.

7.5.1

=======================

- Make ``CountryField`` queryset filters also work with country codes in
addition to names.

- Switch to ``pyproject.toml`` rather than ``setup.py`` to fix installation
issues with pip 23.0+.

7.5

======================

- 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

=======================

- Fix error when using ``USE_I18N = False``.

7.4.1

======================

- Fix broken translations due to last common country names fix.

7.4

====================

- 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

====================

- Fix slowdown introduced in v7.3 caused by always using country name lookups
for field comparisons. ``filter(country="New Zealand")`` will no longer match
now, but instead new ``__name`` and ``__iname`` filters have been added to
achieve this.

7.3.1

====================

- Typing compatibility fixes for Python <3.9.

7.3

======================

- Make full English country names work in database lookups, for example,
``Person.objects.filter(country__icontains="zealand")``.

7.2.1

===================

- Fix Latin translations.

7.2

=================

- 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-attrs`` library.

7.1

===================

- Allow customising the ``str_attr`` of Country objects returned from a
CountryField via a new ``countries_str_attr`` keyword argument (thanks C.
Quentin).

- Add ``pyuca`` as an extra dependency, so that it can be installed like
``pip install django-countries[pyuca]``.

- Add Django 3.2 support.

7.0

=====================

- Add ``name_only`` as 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_OVERRIDE`` using the complex dictionary format.

6.1.3

======================

- Update flag of Mauritania.

- Add flag for Kosovo (under its temporary code of XK).
Links

@pyup-bot

pyup-bot commented Nov 4, 2025

Copy link
Copy Markdown
Collaborator Author

Closing this in favor of #882

@pyup-bot pyup-bot closed this Nov 4, 2025
@salimfadhley salimfadhley deleted the pyup-update-django-countries-6.1.2-to-7.8 branch November 4, 2025 04:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant