2.11.rst 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. ===========================================
  2. Wagtail 2.11 release notes - IN DEVELOPMENT
  3. ===========================================
  4. .. contents::
  5. :local:
  6. :depth: 1
  7. What's new
  8. ==========
  9. Other features
  10. ~~~~~~~~~~~~~~
  11. * Add ``before_edit_snippet``, ``before_create_snippet`` and ``before_delete_snippet`` hooks and documentation (Karl Hobley. Sponsored by the Mozilla Foundation)
  12. * Add ``register_snippet_listing_buttons`` and ``construct_snippet_listing_buttons`` hooks and documentation (Karl Hobley. Sponsored by the Mozilla Foundation)
  13. * Add ``wagtail --version`` to available Wagtail CLI commands (Kalob Taulien)
  14. * Add ``hooks.register_temporarily`` utility function for testing hooks (Karl Hobley. Sponsored by the Mozilla Foundation)
  15. * Remove unidecode and use anyascii in for Unicode to ASCII conversion (Robbie Mackay)
  16. * Add ``render`` helper to ``RoutablePageMixin`` to support serving template responses according to Wagtail conventions (Andy Babic)
  17. * Specify minimum Python version in setup.py (Vince Salvino)
  18. Bug fixes
  19. ~~~~~~~~~
  20. * Make page-level actions accessible to keyboard users in page listing tables (Jesse Menn)
  21. * ``WAGTAILFRONTENDCACHE_LANGUAGES`` was being interpreted incorrectly. It now accepts a list of strings, as documented (Karl Hobley)
  22. * Update oEmbed endpoints to use https where available (Matt Westcott)
  23. Upgrade considerations
  24. ======================
  25. SiteMiddleware moved to ``wagtail.contrib.legacy``
  26. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  27. The SiteMiddleware class (which provides the ``request.site`` property, and has been deprecated since Wagtail 2.9) has been moved to the ``wagtail.contrib.legacy`` namespace. On projects where this is still in use, the ``'wagtail.core.middleware.SiteMiddleware'`` entry in ``MIDDLEWARE`` should be changed to ``'wagtail.contrib.legacy.sitemiddleware.SiteMiddleware'``.