2020-04-22 11:32:34 +00:00
===========================================
Wagtail 2.10 release notes - IN DEVELOPMENT
===========================================
.. contents ::
:local:
:depth: 1
What's new
==========
2020-05-20 13:29:00 +00:00
Search query expressions
~~~~~~~~~~~~~~~~~~~~~~~~
Search queries can now be constructed as structured expressions in the manner of the Django ORM's `` Q() `` values, allowing for complex queries that combine individual terms, phrases and boosting. A helper function `` parse_query_string `` is provided to convert "natural" queries containing quoted phrases into these expressions. For complete documentation, see :ref: `wagtailsearch_complex_queries` . This feature was developed by Karl Hobley and sponsored by `The Motley Fool <https://www.fool.com/> `_ .
2020-04-22 11:32:34 +00:00
2020-06-25 16:09:17 +00:00
Redirect importing
~~~~~~~~~~~~~~~~~~
Redirects can now be imported from an uploaded CSV, TSV, XLS or XLSX file. This feature was developed by Martin Sandström.
2020-04-22 11:32:34 +00:00
Other features
~~~~~~~~~~~~~~
2020-06-09 10:04:13 +00:00
* Added `` webpquality `` and `` format-webp-lossless `` image filters and `` WAGTAILIMAGES_WEBP_QUALITY `` setting. See :ref: `output_image_format` and :ref: `image_quality` (Nikolay Lukyanov)
2020-04-22 11:32:34 +00:00
* Reorganised Dockerfile in project template to follow best practices (Tomasz Knapik, Jannik Wempe)
2020-04-22 15:06:04 +00:00
* Added filtering to locked pages report (Karl Hobley)
2020-02-22 20:31:13 +00:00
* Adds ability to view a group's users via standalone admin URL and a link to this on the group edit view (Karran Besen)
2020-01-14 15:26:26 +00:00
* Redirect to previous url when deleting/copying/unpublish a page and modify this url via the relevant hooks (Ascani Carlo)
2020-07-14 12:31:07 +00:00
* Added `` next_url `` keyword argument on `` register_page_listing_buttons `` and `` register_page_listing_more_buttons `` hooks (Ascani Carlo, Matt Westcott, LB (Ben Johnston))
2019-03-24 21:46:04 +00:00
* `` AbstractEmailForm `` will use `` SHORT_DATETIME_FORMAT `` and `` SHORT_DATE_FORMAT `` Django settings to format date/time values in email (Haydn Greatnews)
* `` AbstractEmailForm `` now has a separate method (`` render_email `` ) to build up email content on submission emails. See :ref: `form_builder_render_email` . (Haydn Greatnews)
2020-04-28 15:30:51 +00:00
* Add `` pre_page_move `` and `` post_page_move `` signals. (Andy Babic)
2018-06-15 08:12:13 +00:00
* Add ability to sort search promotions on listing page (Chris Ranjana, LB (Ben Johnston))
2019-06-19 13:04:56 +00:00
* Upgrade internal JS tooling; Node v10, Gulp v4 & Jest v23 (Jim Jazwiecki, Kim LaRocca, Thibaud Colas)
2018-06-07 22:40:05 +00:00
* Add `` after_publish_page `` , `` before_publish_page `` , `` after_unpublish_page `` & `` before_unpublish_page `` hooks (Jonatas Baldin, Coen van der Kamp)
2020-04-03 21:14:56 +00:00
* Add convenience `` page_url `` shortcut to improve how page URLs can be accessed from site settings in Django templates (Andy Babic)
2019-01-14 22:26:10 +00:00
* Show more granular error messages from Pillow when uploading images (Rick van Hattem)
2020-05-05 08:06:27 +00:00
* Add ordering to `` Site `` object, so that index page and `` Site `` switcher will be sorted consistently (Coen van der Kamp, Tim Leguijt)
2020-05-06 15:58:22 +00:00
* Add Reddit to oEmbed provider list (Luke Hardwick)
2020-04-10 16:55:07 +00:00
* Remove sticky footer on small devices, so that content is not blocked and more easily editable (Saeed Tahmasebi)
2020-05-07 23:11:05 +00:00
* Add ability to replace the default Wagtail logo in the userbar, via `` branding_logo `` block (Meteor0id)
2020-05-10 07:11:36 +00:00
* Add `` alt `` property to `` ImageRenditionField `` api representation (Liam Mullens)
* Add `` purge_revisions `` management command to purge old page revisions (Jacob Topp-Mugglestone, Tom Dyson)
* Render the Wagtail User Bar on non `` Page `` views (Caitlin White, Coen van der Kamp)
* Add ability to define `` form_classname `` on `` ListBlock `` & `` StreamBlock `` (LB (Ben Johnston))
2019-05-24 15:33:15 +00:00
* Add documentation about how to use `` Rustface `` for image feature detection (Neal Todd)
2019-10-29 23:26:49 +00:00
* Improve performance of public/not_public queries in `` PageQuerySet `` (Timothy Bautista)
2018-08-26 15:28:55 +00:00
* Add `` add_redirect `` static method to `` Redirect `` class for programmatic redirect creation (Brylie Christopher Oxley, Lacey Williams Henschel)
* Add reference documentation for `` wagtail.contrib.redirects `` See :ref: `redirects` . (LB (Ben Johnston))
2017-09-21 23:43:58 +00:00
* `` bulk_delete `` page permission is no longer required to move pages, even if those pages have children (Robert Rollins, LB (Ben Johnston))
2020-05-12 21:40:27 +00:00
* Add `` after_edit_snippet `` , `` after_create_snippet `` and `` after_delete_snippet `` hooks and documentation (Kalob Taulien)
2020-03-18 11:05:22 +00:00
* Improve performance of empty search results by avoiding downloading the entire search index in these scenarios (Lars van de Kerkhof, Coen van der Kamp)
2020-05-07 23:33:49 +00:00
* Replace `` gulp-sass `` with `` gulp-dart-sass `` to improve core development across different platforms (Thibaud Colas)
2020-07-16 06:20:44 +00:00
* Add SVG icons to resolve accessibility and customisation issues and start using them in a subset of Wagtail's admin (Coen van der Kamp, Scott Cranfill, Thibaud Colas, Dan Braghis)
2020-06-26 10:12:35 +00:00
* Switch userbar and header H1s to use SVG icons (Coen van der Kamp)
2020-05-16 19:35:22 +00:00
* Remove markup around rich text rendering by default, provide a way to use old behaviour via `` wagtail.contrib.legacy.richtext `` . See :ref: `legacy_richtext` . (Coen van der Kamp, Dan Braghis)
2020-05-27 17:17:04 +00:00
* Add `` WAGTAIL_TIME_FORMAT `` setting (Jacob Topp-Mugglestone)
2020-06-05 14:23:50 +00:00
* Apply title length normalisation to improve ranking on PostgreSQL search (Karl Hobley)
2020-06-07 14:07:36 +00:00
* Allow omitting the default editor from `` WAGTAILADMIN_RICH_TEXT_EDITORS `` (Gassan Gousseinov)
2020-06-24 10:09:30 +00:00
* Disable password auto-completion on user creation form (Samir Shah)
2020-06-27 07:22:13 +00:00
* Upgrade jQuery to version 3.5.1 to reduce penetration testing false positives (Matt Westcott)
2020-06-25 23:38:05 +00:00
* Add ability to extend `` EditHandler `` without a children attribute (Seb Brown)
2020-04-01 15:28:15 +00:00
* `` Page.objects.specific `` now gracefully handles pages with missing specific records (Andy Babic)
2020-05-25 21:15:34 +00:00
* StreamField 'add' buttons are now disabled when maximum count is reached (Max Gabrielsson)
2020-07-13 13:03:18 +00:00
* Use underscores for form builder field names to allow use as template variables (Ashia Zawaduk, LB (Ben Johnston))
* Deprecate use of unidecode within form builder field names (Michael van Tellingen, LB (Ben Johnston))
2020-07-13 17:32:01 +00:00
* Improve error feedback when editing a page with a missing model class (Andy Babic)
2020-07-15 15:20:39 +00:00
* Change Wagtail tabs implementation to only allow slug-formatted tab identifiers, reducing false positives from security audits (Matt Westcott)
2020-07-21 17:16:36 +00:00
* Add skip link for keyboard users to bypass Wagtail navigation in the admin (Martin Coote)
2020-04-22 11:32:34 +00:00
Bug fixes
~~~~~~~~~
2020-02-22 20:31:13 +00:00
* Ensure link to add a new user works when no users are visible in the users list (LB (Ben Johnston))
2019-03-24 21:46:04 +00:00
* `` AbstractEmailForm `` saved submission fields are now aligned with the email content fields, `` form.cleaned_data `` will be used instead of `` form.fields `` (Haydn Greatnews)
2020-04-28 15:30:51 +00:00
* Removed ARIA `` role="table" `` from TableBlock output (Thibaud Colas)
2020-04-26 13:55:51 +00:00
* Set Cache-Control header to prevent page preview responses from being cached (Tomas Walch)
2020-04-27 17:21:31 +00:00
* Accept unicode characters in slugs on the "copy page" form (François Poulain)
2020-04-30 21:06:38 +00:00
* Support IPv6 domain (Alex Gleason, Coen van der Kamp)
2020-05-10 07:11:36 +00:00
* Remove top padding when `` FieldRowPanel `` is used inside a `` MultiFieldPanel `` (Jérôme Lebleu)
2020-05-14 12:25:17 +00:00
* Add Wagtail User Bar back to page previews and ensure moderation actions are available (Coen van der Kamp)
2020-05-13 16:35:37 +00:00
* Fix issue where queryset annotations were lost (e.g. `` .annotate_score() `` ) when using specific models in page query (Dan Bentley)
2020-05-27 17:17:04 +00:00
* Prevent date/time picker from losing an hour on losing focus when 12-hour times are in use (Jacob Topp-Mugglestone)
2020-06-02 00:00:45 +00:00
* Strip out HTML tags from `` RichTextField `` & `` RichTextBlock `` search index content (Timothy Bautista)
2020-05-27 15:18:38 +00:00
* Avoid using null on string `` Site.site_name `` blank values to avoid different values for no name (Coen van der Kamp)
2020-06-03 16:28:34 +00:00
* Fix deprecation warnings on Elasticsearch 7 (Yngve Høiseth)
2020-06-04 13:33:50 +00:00
* Remove use of Node.forEach for IE 11 compatibility in admin menu items (Thibaud Colas)
2020-06-25 09:31:29 +00:00
* Fix incorrect method name in SiteMiddleware deprecation warning (LB (Ben Johnston))
* `` wagtail.contrib.sitemaps `` no longer depends on SiteMiddleware (Matt Westcott)
2020-06-30 13:25:30 +00:00
* Purge image renditions cache when renditions are deleted (Pascal Widdershoven, Matt Westcott)
2020-07-03 18:19:41 +00:00
* Image / document forms now display non-field errors such as `` unique_together `` constraints (Matt Westcott)
2020-07-21 19:13:25 +00:00
* Make "Site" chooser in site settings translateable (Andreas Bernacca)
* Add missing dropdown icons to image upload, document upload, and site settings screens (Andreas Bernacca)
2020-07-21 20:06:45 +00:00
* Prevent snippets’ bulk delete button from being present for screen reader users when it’ s absent for sighted users (LB (Ben Johnston))
2020-07-21 21:24:14 +00:00
* Fix group permission checkboxes not being clickable in IE11 (LB (Ben Johnston))
2020-04-22 11:32:34 +00:00
Upgrade considerations
======================
2020-04-22 15:12:20 +00:00
Removed support for Python 3.5
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Python 3.5 is no longer supported as of this release; please upgrade to Python 3.6 or above before upgrading Wagtail.
2020-06-05 14:43:16 +00:00
`` <div class="rich-text"> `` wrappers removed from rich text
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In previous releases, rich text values were enclosed in a `` <div class="rich-text"> `` element when rendered; this element has now been removed.
To restore the old behaviour, see :ref: `legacy_richtext` .
2020-07-12 10:30:20 +00:00
2020-07-14 12:31:07 +00:00
New `` next_url `` keyword argument on `` register_page_listing_buttons `` and `` register_page_listing_more_buttons `` hooks
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2020-07-12 10:30:20 +00:00
2020-07-14 12:31:07 +00:00
Functions registered through the hooks `` register_page_listing_buttons `` and `` register_page_listing_more_buttons `` now accept an additional keyword argument `` next_url `` . A hook function currently written as:
.. code-block :: python
@hooks.register('register_page_listing_buttons')
def page_listing_more_buttons(page, page_perms, is_parent=False):
yield wagtailadmin_widgets.Button(
'My button', '/goes/to/a/url/', priority=60
)
should now become:
.. code-block :: python
@hooks.register('register_page_listing_buttons')
def page_listing_more_buttons(page, page_perms, is_parent=False, next_url=None):
yield wagtailadmin_widgets.Button(
'My button', '/goes/to/a/url/', priority=60
)
The `` next_url `` argument specifies a URL to redirect back to after the action is complete, and can be passed as a query parameter to the linked URL, if the view supports it.