Skip to content

v1.6 - keeping the lights on, and swapping some with LEDs

Compare
Choose a tag to compare
@zerolab zerolab released this 06 Oct 16:01
· 97 commits to main since this release
dc30d44

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 to transaction.on_commit by @Abdul-Dridi in #711
  • Locale filter selector based on installed languages by @jhonatan-lopes in #716
  • Move revision publishing in TranslationSource to transaction.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

Full Changelog: v1.5.2...v1.6