Revisions of python-django-countries
Ana Guerrero (anag+factory)
accepted
request 1165951
from
Dirk Mueller (dirkmueller)
(revision 4)
- update to 7.6.1: * Fix a TypeError when no country is selected, introduced in the Django 5 fix. * Replace deprecated pkg_resources.iter_entry_points with importlib_metadata. * Support Django 5.0.
Ana Guerrero (anag+factory)
accepted
request 1129786
from
Dirk Mueller (dirkmueller)
(revision 3)
- update to 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+. * Rename Turkey to Türkiye. * Improve translation fallback handling, fixing a threading race condition that could cause odd translation issues. * 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. * Fix error when using ``USE_I18N = False``. * Fix broken translations due to last common country names fix. * 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. * Fix common country names not being honoured in non-English translations (only fixed for Python 3.8+). * 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. * Typing compatibility fixes for Python <3.9. * Make full English country names work in database lookups, for
Dominique Leuenberger (dimstar_suse)
accepted
request 892317
from
John Vandenberg (jayvdb)
(revision 2)
Dominique Leuenberger (dimstar_suse)
accepted
request 814133
from
Ondřej Súkup (mimi_vx)
(revision 1)
Nice little application for Django projects providing fixtures and models for a "complete" list of world countries and US states. Also throwing in a small template filter for getting country flags by ISO 3166-1 alpha-2 country code.
Displaying all 4 revisions