0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00
wagtail/docs/releases/2.9.rst

94 lines
5.9 KiB
ReStructuredText
Raw Normal View History

2020-01-23 12:56:35 +01:00
==========================================
Wagtail 2.9 release notes - IN DEVELOPMENT
==========================================
.. contents::
:local:
:depth: 1
What's new
==========
2020-03-13 18:42:11 +01: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 12:56:35 +01:00
Other features
~~~~~~~~~~~~~~
2020-03-19 18:49:33 +01:00
* Added support for creating custom reports (Jacob Topp-Mugglestone)
2020-02-16 22:18:11 +01:00
* 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ś)
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)
* 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)
2020-03-19 17:12:40 +01:00
* FieldPanel now accepts a 'heading' argument (Jacob Topp-Mugglestone)
* Replaced deprecated ``ugettext`` / ``ungettext`` calls with ``gettext`` / ``ngettext`` (Mohamed Feddad)
* ListBLocks now call child block ``bulk_to_python`` if defined (Andy Chosak)
2020-04-03 22:22:22 +02:00
* Site settings are now identifiable/cachable by request as well as site (Andy Babic)
2020-04-03 22:59:38 +02:00
* Added ``select_related`` attribute to site settings to enable more efficient fetching of foreign key values (Andy Babic)
2018-11-02 00:26:40 +01:00
* Add caching of image renditions (Tom Dyson, Tim Kamanin)
* Add documentation for reporting security issues and internationalisation (Matt Westcott)
* Fields on a custom image model can now be defined as required ``blank=False`` (Matt Westcott)
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)
* 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)
* ``{% image ... as var %}`` now clears the context variable when passed None as an image (Maylon Pedroso)
2020-03-04 12:38:32 +01: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)
* Prevent error from very tall / wide images being resized to 0 pixels (Fidel Ramos)
* Remove excess margin when editing snippets (Quadric)
* Added ``scope`` attribute to table headers in TableBlock output (Quadric)
* Prevent KeyError when accessing a StreamField on a deferred queryset (Paulo Alvarado)
2020-03-03 03:18:46 +01:00
* Hide empty 'view live' links (Karran Besen)
2020-04-08 12:12:57 +02:00
* Mark up a few strings for translation (Luiz Boaretto)
* Invalid focal_point attribute on image edit view (Michał (Quadric) Sieradzki)
* No longer expose the ``.delete()`` method on the default Page.objects manager (Nick Smith)
* ``exclude_fields_in_copy`` on Page models will now work for for modelcluster parental / many to many relations (LB (Ben Johnston))
* Response header (content disposition) now correctly handles filenames with non-ascii characters when using a storage backend (Rich Brennan)
* Improved accessibility fixes for ``main``, ``header`` and ``footer`` elements in the admin page layout (Mitchel Cabuloy)
2020-04-20 12:56:09 +02:00
* Prevent version number from obscuring long settings menus (Naomi Morduch Toubman)
* Admin views using TemplateResponse now respect the user's language setting (Jacob Topp-Mugglestone)
* Fixed incorrect language code for Japanese in language setting dropdown (Tomonori Tanabe)
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.
``SiteMiddleware`` and ``request.site`` deprecated
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2020-03-03 03:18:46 +01: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.
Page / Collection managers no longer expose a ``delete`` method
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
For `consistency with standard Django models <https://docs.djangoproject.com/en/stable/topics/db/queries/#deleting-objects>`_, the ``delete()`` method is no longer available on the default Page and Collection managers. Code such as ``Page.objects.delete()`` should be changed to ``Page.objects.all().delete()``.