- Drop support for Python-2.
- Add support for Python-3.8, 3.9 and 3.10.
- Drop support for Django 2.0 and 2.1.
- Add support for Django 3.2 and 4.0.
- Read/Write support for
TranslatedField
. - Use composition instead of inheritance by moving funtionality from
TranslatableModelSerializer
intoTranslatableModelSerializerMixin
. - Fix: Model check agianst
TranslatableModelMixin
.
- Added Django 2.0 and 2.1 support.
- Dropped Django 1.7, 1.8, 1.9, 1.10 support.
- Added type checking on the models used in the serializer. This avoids nasty errors when the shared model is used accidently.
For example, in Django 1.7 MyModel.translations.related.model
resolved the translated model,
but on Django 1.8+ it returns the parent model. MyModel.translations.related.related_model
should be used instead.
- Make sure the model's
save_translations()
andsave_translation()
methods are called, in case those are overridden to provide extra changes.
- Added
languages
context variable toTranslatedSerializer
.
- Fixed nested serializer support.
- Added
allow_empty
option toparler_rest.fields.TranslatedFieldsField
. NOTE: by default, empty an empty"translations": {}
value is no longer allowed.
- Added support for django-rest-framework 3.
- Added
parler_rest.fields.TranslatedField
class to expose a single field in multiple languages (read only). - Added
parler_rest.fields.TranslatedAbsoluteUrlField
class to expose a tranlated URL in a custom translations serializer. - Support the
source
argument on theTranslatedFieldsField
. - Dropped support for django-rest-framework 2.
- Fix djangorestframework PiPI package name in
setup.py
.
- Initial release, extracted from django-parler.