v1.6 - keeping the lights on, and swapping some with LEDs
This release adds a few bug fixes, and improves the translations report local filter.
Warning
If you have tests that call .save_target()
on Translation
objects, or emulate submitting the translation via the UI, you will want to patch transaction.on_commit
# test_something.py
from django.db import transaction
...
def test_my_test(self):
with patch.object(transaction, "on_commit", side_effect=lambda func: func()):
translation.save_target()
...
# or
@patch.object(transaction, "on_commit", side_effect=lambda func: func())
def test_decorate_test(self, _mock_on_commit):
...
What's Changed
- Translation of models with
ParentalManyToManyField
by @hpoul in #564 - Move revision publishing in
TranslationSource
totransaction.on_commit
by @Abdul-Dridi in #711 - Locale filter selector based on installed languages by @jhonatan-lopes in #716
- Move revision publishing in
TranslationSource
totransaction.on_commit
by @zerolab in #720 - Tooling updates by @zerolab in #723
- Fix non-page model creation with
WAGTAILLOCALIZE_SYNC_LIVE_STATUS_ON_TRANSLATE=False
by @zerolab in #726
New Contributors
- @jhonatan-lopes made their first contribution in #716
Full Changelog: v1.5.2...v1.6