2020-01-23 12:56:35 +01:00
==========================================
Wagtail 2.9 release notes - IN DEVELOPMENT
==========================================
.. contents ::
:local:
:depth: 1
What's new
==========
Other features
~~~~~~~~~~~~~~
2020-02-16 22:18:11 +01:00
* Skip page validation when unpublishing a page (Samir Shah)
2020-02-10 23:24:49 +01:00
* Added :ref: `streamfield_multiplechoiceblock` block type for StreamField (James O'Toole)
* ChoiceBlock now accepts a `` widget `` keyword argument (James O'Toole)
2020-01-25 01:05:27 +01:00
* Reduced contrast of rich text toolbar (Jack Paine)
2020-01-24 19:57:02 +01:00
* Support the rel attribute on custom ModelAdmin buttons (Andy Chosak)
2020-02-05 13:18:17 +01:00
* Server-side page slug generation now respects `` WAGTAIL_ALLOW_UNICODE_SLUGS `` (Arkadiusz Michał Ryś)
2020-02-17 13:30:10 +01:00
* Wagtail admin no longer depends on SiteMiddleware, avoiding incompatibility with Django sites framework and redundant database queries (aritas1, timmysmalls, Matt Westcott)
2020-02-18 12:45:53 +01:00
* Tag field autocompletion now handles custom tag models (Matt Westcott)
2020-02-21 18:29:07 +01:00
* `` wagtail_serve `` URL route can now be omitted for headless sites (Storm Heg)
2020-02-26 15:10:02 +01:00
* Allow free tagging to be disabled on custom tag models (Matt Westcott)
2020-01-23 17:16:58 +01:00
* Allow disabling page preview by setting `` preview_modes `` to an empty list (Casper Timmers)
2020-01-23 12:56:35 +01:00
Bug fixes
~~~~~~~~~
2020-01-23 16:33:19 +01:00
* Added ARIA alert role to live search forms in the admin (Casper Timmers)
2020-01-23 16:59:43 +01:00
* Reordered login form elements to match expected tab order (Kjartan Sverrisson)
2020-01-23 17:21:43 +01:00
* Re-added 'Close Explorer' button on mobile viewports (Sævar Öfjörð Magnússon)
2020-01-24 16:56:34 +01:00
* Added a more descriptive label to Password reset link for screen reader users (Casper Timmers, Martin Coote)
2020-01-24 21:51:30 +01:00
* Improved Wagtail logo contrast by adding a background (Brian Edelman, Simon Evans, Ben Enright)
2020-02-10 18:29:24 +01:00
* Prevent duplicate notification messages on page locking (Jacob Topp-Mugglestone)
2020-02-16 22:39:20 +01:00
* Rendering of non field errors for InlinePanel items (Storm Heg)
2020-01-27 15:47:31 +01:00
* `` {% image ... as var %} `` now clears the context variable when passed None as an image (Maylon Pedroso)
2020-01-23 12:56:35 +01:00
Upgrade considerations
======================
2020-02-18 14:55:53 +01:00
Removed support for Django 2.1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Django 2.1 is no longer supported as of this release; please upgrade to Django 2.2 or above before upgrading Wagtail.
2020-01-24 14:29:59 +01:00
`` SiteMiddleware `` and `` request.site `` deprecated
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Wagtail's :class: `~wagtail.core.middleware.SiteMiddleware` , which makes the current site object available as the property `` request.site `` , is now deprecated as it clashes with Django's sites framework and makes unnecessary database queries on non-Wagtail views. References to `` request.site `` in your code should be removed; the recommended way of retrieving the current site is `` Site.find_for_request(request) `` in Python code, and the `` {% wagtail_site %} `` tag within Django templates. Once these are removed, `` 'wagtail.core.middleware.SiteMiddleware' `` can be removed from your project's `` MIDDLEWARE `` setting.