17
0
Ana Guerrero 6243ecc0d1 Accepting request 1341715 from devel:languages:python:django
- update to 8.2.0:
  * Add `django_countries.django_filters.CountryFilter` for
    django-filters integration with support for custom
    `empty_label`. This filter automatically sets country choices
    and seamlessly integrates with django-filters FilterSets,
    making it easier to add country filtering to your views.
  * Enable `CountryFieldMixin` to accept `name_only`,
    `country_dict`, and output customization options via
    `Meta.extra_kwargs`. You can now configure country field
    serialization behavior without explicitly declaring
    serializer fields, making it easier to customize output for
    both single and multiple country fields.
  * `CountryField(country_dict=...)` now accepts either a boolean
    (existing behaviour) or an iterable/string of keys so you can
    control exactly which values appear in the serialized country
    dict (for example `("code", "name", "alpha3")` or just
    `"alpha3"`).
  * Add `COUNTRIES_FIRST_BY_LANGUAGE` and
    `COUNTRIES_FIRST_AUTO_DETECT` settings for dynamic country
    ordering based on user language. Countries can now be
    automatically reordered based on the current language, with
    locale-based auto-detection (e.g., `fr-CA` users see Canada
    prepended to the French country group).
  * Add support for custom `flag_url` in `COUNTRIES_OVERRIDE`
    setting. You can now specify a custom flag URL for overridden
    countries:
  * Fix `CountryField` serializer to respect current language
    when deserializing localized country names. The field now
    automatically uses Django's `get_language()` to detect the
    active language and falls back to English if the country name

OBS-URL: https://build.opensuse.org/request/show/1341715
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-django-countries?expand=0&rev=5
2026-03-23 16:14:58 +00:00
2026-03-21 15:21:26 +00:00
2026-03-21 15:21:26 +00:00
Description
No description provided
53 KiB
Languages
RPM Spec 100%