Changelog History
Page 3
-
v5.1 Changes
January 30, 2018✅ Tests now also cover Django Rest Framework 3.7 and Django 2.0.
👍 Allow for creating country fields using (valid) alpha-3 or numeric codes.
🛠 Fix migration error with blank default (thanks Jens Diemer).
➕ Add a
{% get_countries %}
template tag (thanks Matija Čvrk).
-
v5.0 Changes
October 10, 2017- No longer allow
multiple=True
andnull=True
together. This causes problems saving the field, andnull
shouldn't really be used anyway because the country field is a subclass ofCharField
.
- No longer allow
-
v4.6.2 Changes
- 👉 Use transparency layer for flag sprites.
-
v4.6.1 Changes
- 🛠 Fix invalid reStructuredText in CHANGES.
-
v4.6 Changes
June 16, 2017➕ Add a
CountryFieldMixin
Django Rest Framework serializer mixin that automatically picks the right field type for aCountryField
(both single and multi-choice).Validation for Django Rest Framework field (thanks Simon Meers).
👍 Allow case-insensitive
.by_name()
matching (thanks again, Simon).Ensure a multiple-choice
CountryField.max_length
is enough to hold all countries.🛠 Fix inefficient pickling of countries (thanks Craig de Stigter for the report and tests).
Stop adding a blank choice when dealing with a multi-choice
CountryField
.✅ Tests now cover multiple Django Rest Framework versions (back to 3.3).
-
v4.5 Changes
April 18, 2017🔄 Change rest framework field to be based on
ChoiceField
.👍 Allow for the rest framework field to deserialize by full country name (specifically the English name for now).
-
v4.4 Changes
April 06, 2017🛠 Fix for broken CountryField on certain models in Django 1.11. Thanks aktiur for the test case.
⚡️ Update tests to cover Django 1.11
-
v4.3 Changes
March 29, 2017🌐 Handle "Czechia" translations in a nicer way (fall back to "Czech Republic" until new translations are available).
🛠 Fix for an import error in Django 1.9+ due to use of non-lazy
ugettext
in the django-countries custom admin filter.✅ Back to 100% test coverage.
-
v4.2 Changes
March 10, 2017- ➕ Add sprite flag files (and
Country.flag_css
property) to help minimize HTTP requests.
- ➕ Add sprite flag files (and
-
v4.1 Changes
February 22, 2017👍 Better default Django admin filter when filtering a country field in a
ModelAdmin
.🛠 Fix settings to support Django 1.11
🛠 Fix when using a model instance with a deferred country field.
👍 Allow
CountryField
to handle multiple countries at once!👍 Allow CountryField to still work if Deferred.
🛠 Fix a field with customized country list. Thanks pilmie!