Django-countries

Latest version: v7.6.1

Safety actively analyzes 714860 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 8 of 10

3.4

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

* Extend test suite to cover Django 1.8

* Fix XSS escaping issue in CountrySelectWidget

* Common name changes: fix typo of Moldova, add United Kingdom

* Add ``{% get_country %}`` template tag.

* New ``CountryField`` Django Rest Framework serializer field.

3.3

Not secure
=================

* Add the attributes to ``Countries`` class that can override the default
settings.

* CountriesField can now be passed a custom countries subclass to use, which
combined with the previous change allows for different country choices for
different fields.

* Allow ``COUNTRIES_ONLY`` to also accept just country codes in its list
(rather than only two-tuples), looking up the translatable country name from
the full country list.

* Fix Montenegro flag size (was 12px high rather than the standard 11px).

* Fix outdated ISO country name formatting for Bolivia, Gambia, Holy See,
Iran, Micronesia, and Venezuela.

3.2

Not secure
=================

* Fixes initial iteration failing for a fresh ``Countries`` object.

* Fix widget's flag URLs (and use ensure widget is HTML encoded safely).

* Add ``countries.by_name(country, language='en')`` method, allowing lookup of
a country code by its full country name. Thanks Josh Schneier.

3.1.1

Not secure
-------------------

* Packaging fix (``CHANGES.rst`` wasn't in the manifest)

3.1

Not secure
=================

* Start change log :)

* Add a ``COUNTRIES_FIRST`` setting (and some other related ones) to allow for
specific countries to be shown before the entire alphanumeric list.

* Add a ``blank_label`` argument to ``CountryField`` to allow customization of
the label shown in the initial blank choice shown in the select widget.

3.0.2

Not secure
-------------------

* Fix ``CountrySelectWidget`` failing when used with a model form that is
passed a model instance.

Page 8 of 10

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.