2020-01-23 11:56:35 +00:00
==========================================
Wagtail 2.9 release notes - IN DEVELOPMENT
==========================================
.. contents ::
:local:
:depth: 1
What's new
==========
2020-03-13 17:42:11 +00:00
Report data exports
~~~~~~~~~~~~~~~~~~~
Data from reports, form submissions and ModelAdmin can now be exported to both XLSX and CSV format. For ModelAdmin, this is enabled by specifying a `` list_export `` attribute on the ModelAdmin class. This feature was developed by Jacob Topp-Mugglestone and sponsored by `The Motley Fool <https://www.fool.com/> `_ .
2020-01-23 11:56:35 +00:00
Other features
~~~~~~~~~~~~~~
2020-03-19 17:49:33 +00:00
* Added support for creating custom reports (Jacob Topp-Mugglestone)
2020-02-16 21:18:11 +00:00
* Skip page validation when unpublishing a page (Samir Shah)
2020-02-10 22:24:49 +00: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 00:05:27 +00:00
* Reduced contrast of rich text toolbar (Jack Paine)
2020-01-24 18:57:02 +00:00
* Support the rel attribute on custom ModelAdmin buttons (Andy Chosak)
2020-02-05 12:18:17 +00:00
* Server-side page slug generation now respects `` WAGTAIL_ALLOW_UNICODE_SLUGS `` (Arkadiusz Michał Ryś)
2020-02-17 12:30:10 +00: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 11:45:53 +00:00
* Tag field autocompletion now handles custom tag models (Matt Westcott)
2020-02-21 17:29:07 +00:00
* `` wagtail_serve `` URL route can now be omitted for headless sites (Storm Heg)
2020-02-26 14:10:02 +00:00
* Allow free tagging to be disabled on custom tag models (Matt Westcott)
2020-01-23 16:16:58 +00:00
* Allow disabling page preview by setting `` preview_modes `` to an empty list (Casper Timmers)
2020-02-03 21:36:45 +00:00
* Add Vidyard to oEmbed provider list (Steve Lyall)
2020-02-25 23:00:33 +00:00
* Optimise compiling media definitions for complex StreamBlocks (pimarc)
2020-03-19 16:12:40 +00:00
* FieldPanel now accepts a 'heading' argument (Jacob Topp-Mugglestone)
2020-01-23 11:56:35 +00:00
Bug fixes
~~~~~~~~~
2020-01-23 15:33:19 +00:00
* Added ARIA alert role to live search forms in the admin (Casper Timmers)
2020-01-23 15:59:43 +00:00
* Reordered login form elements to match expected tab order (Kjartan Sverrisson)
2020-01-23 16:21:43 +00:00
* Re-added 'Close Explorer' button on mobile viewports (Sævar Öfjörð Magnússon)
2020-01-24 15:56:34 +00:00
* Added a more descriptive label to Password reset link for screen reader users (Casper Timmers, Martin Coote)
2020-01-24 20:51:30 +00:00
* Improved Wagtail logo contrast by adding a background (Brian Edelman, Simon Evans, Ben Enright)
2020-02-10 17:29:24 +00:00
* Prevent duplicate notification messages on page locking (Jacob Topp-Mugglestone)
2020-02-16 21:39:20 +00:00
* Rendering of non field errors for InlinePanel items (Storm Heg)
2020-01-27 14:47:31 +00:00
* `` {% image ... as var %} `` now clears the context variable when passed None as an image (Maylon Pedroso)
2020-03-04 11:38:32 +00:00
* `` refresh_index `` method on Elasticsearch no longer fails (Lars van de Kerkhof)
* Document tags no longer fail to update when replacing the document file at the same time (Matt Westcott)
2020-03-10 23:15:41 +00:00
* Prevent error from very tall / wide images being resized to 0 pixels (Fidel Ramos)
2020-03-13 11:02:49 +00:00
* Remove excess margin when editing snippets (Quadric)
2020-02-28 23:26:29 +00:00
* Added `` scope `` attribute to table headers in TableBlock output (Quadric)
2019-10-27 23:34:41 +00:00
* Prevent KeyError when accessing a StreamField on a deferred queryset (Paulo Alvarado)
2020-03-03 02:18:46 +00:00
* Hide empty 'view live' links (Karran Besen)
2020-01-27 14:47:31 +00:00
2020-01-23 11:56:35 +00:00
Upgrade considerations
======================
2020-02-18 13:55:53 +00: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 13:29:59 +00:00
`` SiteMiddleware `` and `` request.site `` deprecated
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2020-03-03 02:18:46 +00:00
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.