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!