Version 0.4.0
New Python and Django versions supported:
- django-hvad now supports Django 1.7 running on Python 2.7, 3.3 and 3.4.
- django-hvad now supports Django 1.6 running on Python 2.7 and 3.3.
New features:
TranslationManager's queryset class can now be overriden by setting itsqueryset_classattribute.- Proxy models can be used with django-hvad. This is a new feature, please use with caution and report any issue on github.
TranslatableAdmin's list display now has direct links to each available translation.- Instance's translated fields are now available to the model's
save()method when saving aTranslatableModelForm. - Accessing a translated field on an untranslated instance will now raise an
AttributeErrorwith a helpful message instead of letting the error bubble up from the ORM. - Method
in_bulkis now available onTranslationManager.
Removal of the old nani aliases was postponed until next release.
Deprecation list:
- Catching
ObjectDoesNotExistwhen accessing a translated field on an instance is deprecated. In case no translation is loaded and none exists in database for current language, anAttributeErroris raised instead. For the transition, both are supported until next release.
Fixes:
- Fixed an issue where
TranslatableModelAdmincould overwrite the wrong language while saving a form. - No more deprecation warnings when importing only from
hvad. TranslatableAdminnow generates relative URLs instead of absolute ones, enabling it to work behind reverse proxies.- django-hvad does not depend on the default manager being named
objectsanymore. Qobjects now work properly withTranslationQueryset.lazy_translation_getternow tries translations insettings.LANGUAGESorder once it has failed with current language and site's mainLANGUAGE_CODE.