2.13.5.rst 1.6 KB

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