2.14.2.rst 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. ============================
  2. Wagtail 2.14.2 release notes
  3. ============================
  4. .. contents::
  5. :local:
  6. :depth: 1
  7. What's new
  8. ==========
  9. Bug fixes
  10. ~~~~~~~~~
  11. * Allow relation name used for admin commenting to be overridden to avoid conflicts with third-party commenting apps (Matt Westcott)
  12. * Corrected badly-formed format strings in translations (Matt Westcott)
  13. * Page history now works correctly when it contains changes by a deleted user (Dan Braghis)
  14. Upgrade considerations
  15. ======================
  16. Customising relation name for admin comments
  17. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  18. The admin commenting feature introduced in Wagtail 2.13 added a relation named ``comments`` to the Page and User
  19. models. This can cause conflicts with third-party apps that implement commenting functionality, and so this will be
  20. renamed to ``wagtail_admin_comments`` in Wagtail 2.15. Developers who are affected by this issue, and have thus been
  21. unable to upgrade to Wagtail 2.13 or above, can now "opt in" to the Wagtail 2.15 behaviour by adding the following
  22. line to their project settings:
  23. .. code-block:: python
  24. WAGTAIL_COMMENTS_RELATION_NAME = 'wagtail_admin_comments'
  25. This will allow third-party commenting apps to work in Wagtail 2.14.2 alongside Wagtail's admin commenting functionality.
  26. Reusable library code that needs to preserve backwards compatibility with previous Wagtail versions
  27. can find out the relation name as follows:
  28. .. code-block:: python
  29. try:
  30. from wagtail.core.models import COMMENTS_RELATION_NAME
  31. except ImportError:
  32. COMMENTS_RELATION_NAME = 'comments'