0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 03:31:04 +01:00
wagtail/docs/releases/4.0.1.md
Matt Westcott bea09d20e4 Avoid importing document model class from wagtail.documents.permissions and wagtail.documents.views.chooser
Fixes #9118. Permission policies can now be initialised by passing a model string rather than a class; wagtail.admin.widgets.chooser.BaseChooser had this capability already. Between these, we can adjust wagtail.documents.views.chooser so that no models need to be imported at module load time. As a result, definitions that depend on this module (such as DocumentChooserBlock) can now be included in the same models file as a custom document model, without causing a circular import.
2022-09-05 10:50:11 +01:00

607 B

Wagtail 4.0.1 release notes - IN DEVELOPMENT

Unreleased

---
local:
depth: 1
---

What's new

Bug fixes

  • On the Locked Pages report, limit the "locked by" filter to just users who have locked pages (Stefan Hammer)
  • Prevent JavaScript error when using StreamField on views without commenting support, such as snippets (Jacob Topp-Mugglestone)
  • Modify base template for new projects so that links opened from the preview panel open in a new window (Sage Abdullah)
  • Prevent circular import error between custom document models and document chooser blocks (Matt Westcott)