./www/py-django-countries, Provides a country field for Django models

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 7.6.1, Package name: py311-django-countries-7.6.1, Maintainer: adam

A Django application that provides country choices for use with forms, flag
icons static files, and a country field for models.


Required to run:
[www/py-django] [devel/py-setuptools] [lang/py-six] [lang/python37]

Required to build:
[pkgtools/cwrappers]

Master sites:

Filesize: 659.788 KB

Version history: (Expand)


CVS history: (Expand)


   2024-04-12 09:54:31 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-django-countries: updated to 7.6.1

7.6.1 (2 April 2024)

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

7.6 (27 March 2024)

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

- Support Django 5.0.
   2023-08-30 16:41:43 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-django-countries: updated to 7.5.1

7.5.1 (1 February 2023)
=======================

- 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 (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)
=======================

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

7.4.1 (7 October 2022)
======================

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

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)
====================

- 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 (1 March 2022)
====================

- Typing compatibility fixes for Python <3.9.

7.3 (28 February 2022)
======================

- Make full English country names work in database lookups, for example,
  ``Person.objects.filter(country__icontains="zealand")``.
   2023-07-13 12:03:31 by Thomas Klausner | Files touched by this commit (45)
Log message:
*: switch django users to py-django3
   2022-01-04 21:55:40 by Thomas Klausner | Files touched by this commit (1595)
Log message:
*: bump PKGREVISION for egg.mk users

They now have a tool dependency on py-setuptools instead of a DEPENDS
   2021-10-26 13:31:15 by Nia Alarie | Files touched by this commit (1030)
Log message:
www: Replace RMD160 checksums with BLAKE2s checksums

All checksums have been double-checked against existing RMD160 and
SHA512 hashes

Not committed (merge conflicts):
www/nghttp2/distinfo

Unfetchable distfiles (almost certainly fetched conditionally...):
./www/nginx-devel/distinfo array-var-nginx-module-0.05.tar.gz
./www/nginx-devel/distinfo echo-nginx-module-0.62.tar.gz
./www/nginx-devel/distinfo encrypted-session-nginx-module-0.08.tar.gz
./www/nginx-devel/distinfo form-input-nginx-module-0.12.tar.gz
./www/nginx-devel/distinfo headers-more-nginx-module-0.33.tar.gz
./www/nginx-devel/distinfo lua-nginx-module-0.10.19.tar.gz
./www/nginx-devel/distinfo naxsi-1.3.tar.gz
./www/nginx-devel/distinfo nginx-dav-ext-module-3.0.0.tar.gz
./www/nginx-devel/distinfo nginx-rtmp-module-1.2.2.tar.gz
./www/nginx-devel/distinfo nginx_http_push_module-1.2.10.tar.gz
./www/nginx-devel/distinfo ngx_cache_purge-2.5.1.tar.gz
./www/nginx-devel/distinfo ngx_devel_kit-0.3.1.tar.gz
./www/nginx-devel/distinfo ngx_http_geoip2_module-3.3.tar.gz
./www/nginx-devel/distinfo njs-0.5.0.tar.gz
./www/nginx-devel/distinfo set-misc-nginx-module-0.32.tar.gz
./www/nginx/distinfo array-var-nginx-module-0.05.tar.gz
./www/nginx/distinfo echo-nginx-module-0.62.tar.gz
./www/nginx/distinfo encrypted-session-nginx-module-0.08.tar.gz
./www/nginx/distinfo form-input-nginx-module-0.12.tar.gz
./www/nginx/distinfo headers-more-nginx-module-0.33.tar.gz
./www/nginx/distinfo lua-nginx-module-0.10.19.tar.gz
./www/nginx/distinfo naxsi-1.3.tar.gz
./www/nginx/distinfo nginx-dav-ext-module-3.0.0.tar.gz
./www/nginx/distinfo nginx-rtmp-module-1.2.2.tar.gz
./www/nginx/distinfo nginx_http_push_module-1.2.10.tar.gz
./www/nginx/distinfo ngx_cache_purge-2.5.1.tar.gz
./www/nginx/distinfo ngx_devel_kit-0.3.1.tar.gz
./www/nginx/distinfo ngx_http_geoip2_module-3.3.tar.gz
./www/nginx/distinfo njs-0.5.0.tar.gz
./www/nginx/distinfo set-misc-nginx-module-0.32.tar.gz
   2021-10-07 17:09:00 by Nia Alarie | Files touched by this commit (1033)
Log message:
www: Remove SHA1 hashes for distfiles
   2021-05-14 20:58:14 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-django-countries: updated to 7.2.1

7.2.1 (11 May 2021)
- Fix Latin translations.
   2021-05-10 08:06:09 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-django-countries: updated to 7.2

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

7.1 (17 March 2021)
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 (5 December 2020)
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 (18 August 2020)
Update flag of Mauritania.
Add flag for Kosovo (under its temporary code of XK).

6.1.2 (26 March 2020)
Fix Python 3.5 syntax error (no f-strings just yet...).

6.1.1 (26 March 2020)
Change ISO country import so that "Falkland Islands [Malvinas]" => \ 
"Falkland Islands (Malvinas)".

6.1 (20 March 2020)
Add a GraphQL object type for a django Country object.

6.0 (28 February 2020)
Make DRF CountryField respect blank=False. This is a backwards incompatible \ 
change since blank input will now return a validation error (unless blank is \ 
explicitly set to True).
Fix COUNTRIES_OVERRIDE when 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 Country object.

5.4 (11 August 2019)
Renamed Macedonia -> North Macedonia.
Fix an outlying makemigrations error.
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_ONLY and COUNTRIES_OVERRIDE \ 
to allow for multiple names for a country, a custom three character code, and a \ 
custom numeric country code.

5.3.3 (16 February 2019)
Add test coverage for Django Rest Framework 3.9.

5.3.2 (27 August 2018)
Tests for Django 2.1 and Django Rest Framework 3.8.

5.3.1 (12 June 2018)
Fix dumpdata and loaddata for CountryField(multiple=True).

5.3 (20 April 2018)
Iterating a Countries object now returns named tuples. This makes things nicer \ 
when using {% get_countries %} or using the country list elsewhere in your code.