mirror of
https://github.com/wagtail/wagtail.git
synced 2024-11-29 17:36:49 +01:00
0ccfe9568f
Image operations sometimes calculate a target width or height of zero, which make Willow raise a ValueError. If an user uploads one such image it's possible to break the whole Wagtail image manager/picker/uploader for all users. The fix is to use a minimum of 1 pixel for either the target height or the width. The image might lose some aspect ratio, but it's better than an exception.
66 lines
3.6 KiB
ReStructuredText
66 lines
3.6 KiB
ReStructuredText
==========================================
|
|
Wagtail 2.9 release notes - IN DEVELOPMENT
|
|
==========================================
|
|
|
|
.. contents::
|
|
:local:
|
|
:depth: 1
|
|
|
|
|
|
What's new
|
|
==========
|
|
|
|
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/>`_.
|
|
|
|
|
|
Other features
|
|
~~~~~~~~~~~~~~
|
|
|
|
* Skip page validation when unpublishing a page (Samir Shah)
|
|
* Added :ref:`streamfield_multiplechoiceblock` block type for StreamField (James O'Toole)
|
|
* ChoiceBlock now accepts a ``widget`` keyword argument (James O'Toole)
|
|
* Reduced contrast of rich text toolbar (Jack Paine)
|
|
* Support the rel attribute on custom ModelAdmin buttons (Andy Chosak)
|
|
* Server-side page slug generation now respects ``WAGTAIL_ALLOW_UNICODE_SLUGS`` (Arkadiusz Michał Ryś)
|
|
* Wagtail admin no longer depends on SiteMiddleware, avoiding incompatibility with Django sites framework and redundant database queries (aritas1, timmysmalls, Matt Westcott)
|
|
* Tag field autocompletion now handles custom tag models (Matt Westcott)
|
|
* ``wagtail_serve`` URL route can now be omitted for headless sites (Storm Heg)
|
|
* Allow free tagging to be disabled on custom tag models (Matt Westcott)
|
|
* Allow disabling page preview by setting ``preview_modes`` to an empty list (Casper Timmers)
|
|
* Add Vidyard to oEmbed provider list (Steve Lyall)
|
|
* Optimise compiling media definitions for complex StreamBlocks (pimarc)
|
|
* FieldPanel now accepts a 'heading' argument (Jacob Topp-Mugglestone)
|
|
|
|
|
|
Bug fixes
|
|
~~~~~~~~~
|
|
|
|
* Added ARIA alert role to live search forms in the admin (Casper Timmers)
|
|
* Reordered login form elements to match expected tab order (Kjartan Sverrisson)
|
|
* Re-added 'Close Explorer' button on mobile viewports (Sævar Öfjörð Magnússon)
|
|
* Added a more descriptive label to Password reset link for screen reader users (Casper Timmers, Martin Coote)
|
|
* Improved Wagtail logo contrast by adding a background (Brian Edelman, Simon Evans, Ben Enright)
|
|
* Prevent duplicate notification messages on page locking (Jacob Topp-Mugglestone)
|
|
* Rendering of non field errors for InlinePanel items (Storm Heg)
|
|
* ``{% image ... as var %}`` now clears the context variable when passed None as an image (Maylon Pedroso)
|
|
* ``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)
|
|
* Prevent error from very tall / wide images being resized to 0 pixels (Fidel Ramos)
|
|
|
|
|
|
Upgrade considerations
|
|
======================
|
|
|
|
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.
|
|
|
|
|
|
``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. |