Unreleased
---
local:
depth: 1
---
WAGTAILIMAGES_EXTENSIONS
setting to restrict image uploads to specific file types (Aman Pandey, Ananjan-R)Access level
to be easier to understand (Vallabh Tiwari).button-longrunning
behaviour to a Stimulus controller with support for custom label element & duration (Loveth Omokaro)label_format
on StructBlock gracefully handles missing variables (Aadi jindal)Site.get_site_root_paths
works on cache backends that do not preserve Python objects (Jaap Roes)strictPropertyInitialization
in tsconfig (Thibaud Colas)Page.get_static_site_paths
method (Yosr Karoui)The following features deprecated in Wagtail 3.0 have been fully removed. See Wagtail 3.0 release notes for details on these changes, including how to remove usage of these features:
wagtail.core
, wagtail.tests
, wagtail.admin.edit_handlers
and wagtail.contrib.forms.edit_handlers
are removed.StreamFieldPanel
, RichTextFieldPanel
, ImageChooserPanel
, DocumentChooserPanel
and SnippetChooserPanel
are removed.use_json_field=True
(with the exception of migrations created prior to Wagtail 5.0).BASE_URL
setting is no longer recognised.ModelAdmin.get_form_fields_exclude
method is no longer passed a request
argument.ModelAdmin.get_edit_handler
method is no longer passed a request
or instance
argument.widget_overrides
, required_fields
, required_formsets
, bind_to
, render_as_object
and render_as_field
methods on Panel
(previously EditHandler
) are removed.The following features deprecated in Wagtail 4.0 have been fully removed. See Wagtail 4.0 release notes for details on these changes, including how to remove usage of these features:
wagtail.contrib.settings.models.BaseSetting
class is removed.Page.get_latest_revision_as_page
method is removed.page
and page_id
properties and as_page_object
method on Revision
are removed.createPageChooser
, createSnippetChooser
, createDocumentChooser
and createImageChooser
are removed.wagtail.contrib.modeladmin.menus.SubMenu
class is removed.wagtail.contrib.modeladmin.helpers.AdminURLHelper
are now required to accept a base_url_path
keyword argument on the constructor.wagtail.admin.widgets.chooser.AdminChooser
class is removed.wagtail.snippets.views.snippets.get_snippet_edit_handler
function is removed.Page.get_static_site_paths
method removedThe undocumented Page.get_static_site_paths
method (which returns a generator of URL paths for use by static site generator packages) has been removed. Packages relying on this functionality should provide their own fallback implementation.