This log shows interesting changes that happen for each version, latest versions first. It can be assumed that translations have been updated each release (and any new translations added).
- 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.
- 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.
- 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 toCountryField
to allow customization of the label shown in the initial blank choice shown in the select widget.
- Packaging fix (
CHANGES.rst
wasn't in the manifest)
Django supported versions are now 1.4 (LTS) and 1.6+
- Add
COUNTRIES_ONLY
setting to restrict to a specific list of countries. - Optimize country name translations to avoid exessive translation calls that were causing a notable performance impact.
- PyUCA integration, allowing for more accurate sorting across all locales. Also, a better sorting method when PyUCA isn't installed.
- Better tests (now at 100% test coverage).
- Add a
COUNTRIES_FLAG_URL
setting to allow custom flag urls. - Support both IOC and numeric country codes, allowing more flexible lookup of countries and specific code types.
- Field descriptor now returns
None
if no country matches (reverted in v3.0.1)
- Revert descriptor to always return a Country object.
- Fix the
CountryField
widget choices appearing empty due to a translation change in v3.0.
- Fix
CountrySelectWidget
failing when used with a model form that is passed a model instance.
- Add IOC (3 letter) country codes.
- Fix bug when loading fixtures.
- Fix issue with translations getting evaluated early.
- Fix Python 3 compatibility.
This is the first entry to the change log. The previous version was 1.5, released 19 Nov 2012.
- Optimized flag images, adding flags missing from original source.
- Better storage of settings and country list.
- New country list format for fields.
- Better tests.
- Changed
COUNTRIES_FLAG_STATIC
setting toCOUNTRIES_FLAG_URL
.