2023-07-18 18:14:16 +02:00
# Wagtail 5.2 release notes - IN DEVELOPMENT
_Unreleased_
```{contents}
---
local:
depth: 1
---
```
## What's new
### Other features
2022-11-03 18:35:17 +01:00
* Add [`wagtailcache` ](wagtailcache ) and [`wagtailpagecache` ](wagtailpagecache ) template tags to ensure previewing Pages or Snippets will not be cached (Jake Howard)
2023-07-12 11:21:59 +02:00
* Always set help text element ID for form fields with help text in `field.html` template (Sage Abdullah)
2023-08-16 12:40:28 +02:00
* Move `SnippetViewSet` menu registration mechanism to base `ViewSet` class (Sage Abdullah)
* Enable reference index tracking for models registered with `ModelViewSet` (Sage Abdullah)
2023-08-18 19:28:20 +02:00
* When copying a page or creating an alias, copy its view restrictions to the destination (Sandeep Choudhary, Suyash Singh)
2023-07-18 18:14:16 +02:00
### Bug fixes
2023-07-27 13:37:48 +02:00
* Ensure that StreamField's `FieldBlock` s correctly set the `required` and `aria-describedby` attributes (Storm Heg)
2023-07-18 18:14:16 +02:00
### Documentation
2023-08-18 18:45:31 +02:00
* Document `WAGTAILADMIN_BASE_URL` on "Integrating Wagtail into a Django project" page (Shreshth Srivastava)
2023-07-18 18:14:16 +02:00
### Maintenance
2023-07-18 15:19:09 +02:00
* Fix snippet search test to work on non-fallback database backends (Matt Westcott)
2023-08-02 13:01:56 +02:00
* Update Eslint, Prettier & Jest npm packages (LB (Ben) Johnston)
2023-08-02 00:24:26 +02:00
* Add npm scripts for TypeScript checks and formatting SCSS files (LB (Ben) Johnston)
2023-08-02 16:45:14 +02:00
* Run tests in parallel in some of the CI setup (Sage Abdullah)
2023-07-28 11:12:00 +02:00
* Remove unused WorkflowStatus view, urlpattern, and workflow-status.js (Storm Heg)
2023-07-27 13:37:48 +02:00
* Add support for options/attrs in Telepath widgets so that attrs render on the created DOM (Storm Heg)
2023-08-05 02:06:31 +02:00
* Update pre-commit hooks to be in sync with latest changes to Eslint & Prettier for client-side changes (Storm Heg)
2023-08-17 18:19:53 +02:00
* Add `WagtailTestUtils.get_soup()` method for testing HTML content (Storm Heg, Sage Abdullah)
2023-08-15 02:33:16 +02:00
* Allow `ViewSet` subclasses to customise `url_prefix` and `url_namespace` logic (Matt Westcott)
2023-08-16 12:40:28 +02:00
* Simplify `SnippetViewSet` registration code (Sage Abdullah)
2023-07-18 18:14:16 +02:00
2023-08-01 13:32:56 +02:00
## Upgrade considerations - changes affecting all projects
## Upgrade considerations - deprecation of old functionality
## Upgrade considerations - changes affecting Wagtail customisations
2023-08-16 12:22:49 +02:00
### `ModelViewSet` automatically registers the model to the reference index
Models that are registered with a `ModelViewSet` now have reference index tracking enabled by default. This means that you no longer need to call `ReferenceIndex.register_model()` in your app's `ready()` method for such models. If this is undesired, you can disable it by setting {attr}`~wagtail.admin.viewsets.model.ModelViewSet.add_to_reference_index` to `False` on the `ModelViewSet` subclass. For more details, see [](managing_the_reference_index).