8.4 KiB
Wagtail 6.0 release notes - IN DEVELOPMENT
Unreleased
---
local:
depth: 1
---
What's new
Other features
- Added
search_indexoption to StreamField blocks to control whether the block is indexed for searching (Vedant Pandey) - Remember previous location on returning from page add/edit actions (Robert Rollins)
- Update settings file in project settings to address Django 4.2 deprecations (Sage Abdullah)
- Improve layout and accessibility of the image URL generator page, reduce reliance on JavaScript (Temidayo Azeez)
- Allow
UniqueConstraintin place ofunique_togetherfor {class}~wagtail.models.TranslatableMixin's system check (Temidayo Azeez, Sage Abdullah) - Make use of
IndexView.get_add_url()in snippets index view template (Christer Jensen, Sage Abdullah) - Allow
Page.permissions_for_user()to be overridden by specific page types (Sébastien Corbin) - Improve visual alignment of explore icon in Page listings for longer content (Krzysztof Jeziorny)
- Add
extra_actionsblocks to Snippets and generic index templates (Bhuvnesh Sharma) - Added page types usage report (Jhonatan Lopes)
- Add support for defining
panels/edit_handleronModelViewSet(Sage Abdullah) - Use a single instance of
PagePermissionPolicyinwagtail.permissionsmodule (Sage Abdullah)
Bug fixes
- Update system check for overwriting storage backends to recognise the
STORAGESsetting introduced in Django 4.2 (phijma-leukeleu) - Prevent password change form from raising a validation error when browser autocomplete fills in the "Old password" field (Chiemezuo Akujobi)
- Ensure that the legacy dropdown options, when closed, do not get accidentally clicked by other interactions wide viewports (CheesyPhoenix, Christer Jensen)
- Add a fallback background for the editing preview iframe for sites without a background (Ian Price)
- Preserve whitespace in rendered comments (Elhussein Almasri)
- Remove search logging from project template so that new projects without the search promotions module will not error (Matt Westcott)
- Ensure text only email notifications for updated comments do not escape HTML characters (Rohit Sharma)
- Use the latest draft when copying an unpublished page for translation (Andrey Nehaychik)
- Make Workflow and Aging Pages reports only available to users with page-related permissions (Rohit Sharma)
- Make searching on specific fields work correctly on Elasticsearch when boost is in use (Matt Westcott)
- Use a visible border and background color to highlight active formatting in the rich text toolbar (Cassidy Pittman)
- Ensure image focal point box can be removed (Gunnar Scherf)
- Ensure that Snippets search results correctly use the
index_results.htmlorindex_results_template_nameoverride on initial load (Stefan Hammer) - Avoid error when attempting to moderate a page drafted by a now deleted user (Dan Braghis)
Documentation
- Document, for contributors, the use of translate string literals passed as arguments to tags and filters using
_()within templates (Chiemezuo Akujobi) - Document all features for the Documents app in one location, see (Neeraj Yetheendran)
- Add section to testing docs about creating pages and working with page content (Mariana Bedran Lesche)
Maintenance
- Update BeautifulSoup upper bound to 4.12.x (scott-8)
- Migrate initialization of classes (such as
body.ready) from multiple JavaScript implementations to one Stimulus controllerw-init(Chiemezuo Akujobi) - Adopt the usage of of translate string literals using
arg=_('...')in allwagtailadminmodule templates (Chiemezuo Akujobi) - Migrate the contrib styleguide index view to a class-based view (Chiemezuo Akujobi)
- Update djhtml to 3.0.6 (Matt Westcott)
- Migrate the contrib settings edit view to a class-based view (Chiemezuo Akujobi, Sage Abdullah)
- Remove django-pattern-library upper bound in testing dependencies (Sage Abdullah)
- Split up functions in Elasticsearch backend for easier extensibility (Marcel Kornblum, Cameron Lamb, Sam Dudley)
- Relax draftjs_exporter dependency to allow using version 5.x (Sylvain Fankhauser)
- Refine styling of listings, account settings panels and the block chooser (Meli Imelda)
- Remove icon font support (Matt Westcott)
- Remove deprecated SVG icons (Matt Westcott)
- Remove icon font styles (Thibaud Colas)
- Migrate account editing view to a class-based view (Kehinde Bobade)
- Upgrade frontend tooling to use Node 20 (LB (Ben) Johnston)
- Upgrade
ruffand replaceblackwithruff format(John-Scott Atlakson) - Update Willow upper bound to 2.x (Dan Braghis)
Upgrade considerations - removal of deprecated features from Wagtail 4.2 - 5.1
Features previously deprecated in Wagtail 4.2, 5.0 and 5.1 have been fully removed. For additional details on these changes, see:
The most significant changes are highlighted below.
Removal of ModelAdmin app
The wagtail.contrib.modeladmin app has been removed. If you wish to continue using it, it is available as the external package wagtail-modeladmin.
Support for Elasticsearch 5 and 6 dropped
The Elasticsearch 5 and 6 backends have been removed. If you are using one of these backends, you will need to upgrade to Elasticsearch 7 or 8 before upgrading to Wagtail 6.0.
StreamField no longer requires use_json_field=True
The use_json_field argument to StreamField is no longer required, and can be removed. StreamField now consistently uses JSONField for its database representation, and Wagtail 5.0 required older TextField-based streams to be migrated. As such, use_json_field no longer has any effect.
Other removals
- The
WAGTAILADMIN_GLOBAL_PAGE_EDIT_LOCKsetting is no longer recognised and should be replaced withWAGTAILADMIN_GLOBAL_EDIT_LOCK. - The
Querymodel is no longer part of thewagtail.searchmodule; it can now be found in the optionalwagtail.contrib.search_promotionsapp. - The
wagtail.models.UserPagePermissionsProxyclass andget_pages_with_direct_explore_permission,get_explorable_root_pageandusers_with_page_permissionfunctions have been removed; equivalent functionality exists in thewagtail.permission_policies.pages.PagePermissionPolicyclass. - The
permission_typefield of theGroupPagePermissionmodel has been removed; thepermissionfield (a foreign key to Django'sPermissionmodel) should be used instead. - The legacy moderation system used prior to the introduction of workflows in Wagtail 2.10 has been removed. Any moderation requests still in the queue from before this time will be lost.
- The Wagtail icon font has been removed; any direct usage of this needs to be converted to SVG icons.
- Various unused icons deprecated in Wagtail 5.0 have been removed.
- The
partial_matchargument onSearchFieldand onsearchmethods has been removed.AutocompleteFieldand theautocompletemethod should be used instead. - The
insert_editor_csshook has been removed; theinsert_global_admin_csshook should be used instead. - The
wagtail.contrib.frontend_cachemodule now supportsazure-mgmt-cdnversion 10 andazure-mgmt-frontdoorversion 1 as its minimum supported versions. - The
Task.page_locked_for_usermethod has been removed;Task.locked_for_usershould be used instead. - The
{% icon %}template tag no longer acceptsclass_nameas an argument;classnameshould be used instead. - The
wagtail.tests.utilsmodule has been removed and can now be found atwagtail.test.utils. - The template
wagtailadmin/shared/field_as_li.htmlhas been removed, and should be replaced withwagtailadmin/shared/field.htmlenclosed in an<li>tag. - The custom client-side events
wagtail:showandwagtail:hideon showing and hiding dialogs have been removed;w-dialog:showandw-dialog:hideshould be used instead. - The global Javascript definitions
headerSearch,initTagField,cancelSpinnerandunicodeSlugsEnabledhave been removed; these should be replaced with Stimulus controllers.