Commit graph

4 commits

Author SHA1 Message Date
adam
823bc09676 py-django-countries: update to 5.0
Version 5.0:
No longer allow multiple=True and null=True together. This causes problems saving the field, and null shouldn’t really be used anyway because the country field is a subclass of CharField.
2017-10-13 07:01:40 +00:00
adam
5e2ebcfe58 py-django-countries: update to 4.6.2
Version 4.6.2
Use transparency layer for flag sprites.
2017-09-26 17:16:16 +00:00
adam
e905c8f211 Version 4.6
Add a CountryFieldMixin Django Rest Framework serializer mixin that automatically picks the right field type for a CountryField (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).

Version 4.6.1
Fix invalid reStructuredText in CHANGES.
2017-06-16 07:17:58 +00:00
adam
1be9c2f0f7 A Django application that provides country choices for use with forms, flag
icons static files, and a country field for models.
2017-06-12 06:48:20 +00:00