World Countries or Django projects
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.
- Developed at devel:languages:python:django
- Sources inherited from project openSUSE:Factory
-
2
derived packages
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout openSUSE:Backports:SLE-15-SP4:FactoryCandidates/python-django-countries && cd $_
- Create Badge
Refresh
Refresh
Source Files
Filename | Size | Changed |
---|---|---|
django-countries-7.5.1.tar.gz | 0000660484 645 KB | |
python-django-countries.changes | 0000004262 4.16 KB | |
python-django-countries.spec | 0000002483 2.42 KB |
Revision 3 (latest revision is 4)
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
Comments 0