2023-04-21 13:28:31 +02:00
# Wagtail 5.1 release notes - IN DEVELOPMENT
_Unreleased_
```{contents}
---
local:
depth: 1
---
```
## What's new
2023-04-25 18:08:19 +02:00
### Read-only panels
FieldPanels can now be marked as read-only with the `read_only=True` keyword argument, so that they are displayed in the admin but cannot be edited. This feature was developed by Andy Babic.
2023-04-21 13:28:31 +02:00
### Other features
2023-03-05 16:57:33 +01:00
* Mark calls to `md5` as not being used for secure purposes, to avoid flagging on FIPS-mode systems (Sean Kelly)
2023-04-17 18:53:57 +02:00
* Return filters from `parse_query_string` as a `QueryDict` to support multiple values (Aman Pandey)
2023-06-01 15:01:23 +02:00
* Explicitly specify `MenuItem.name` for all admin menu and submenu items (Justin Koestinger)
2023-04-21 13:28:31 +02:00
### Bug fixes
2023-04-19 17:40:38 +02:00
* Prevent choosers from failing when initial value is an unrecognised ID, e.g. when moving a page from a location where `parent_page_types` would disallow it (Dan Braghis)
2023-05-22 12:00:21 +02:00
* Move comment notifications toggle to the comments side panel (Sage Abdullah)
2023-05-23 09:22:21 +02:00
* Remove comment button on InlinePanel fields (Sage Abdullah)
2023-05-20 12:20:31 +02:00
* Fix missing link to `UsageView` from `EditView` for snippets (Christer Jensen)
2023-05-22 21:01:56 +02:00
* Prevent lowercase conversions of IndexView column headers (Virag Jain)
2023-06-09 10:48:01 +02:00
* Ensure that `RichText` objects with the same values compare as equal (NikilTn)
2023-06-10 17:35:53 +02:00
* Use `gettext_lazy` on generic model views so that language settings are correctly used (Matt Westcott)
2023-04-21 13:28:31 +02:00
### Documentation
2023-02-04 18:02:07 +01:00
* Document how to add non-ModelAdmin views to a `ModelAdminGroup` (Onno Timmerman)
2023-03-13 15:43:01 +01:00
* Document how to add StructBlock data to a StreamField (Ramon Wenger)
2023-05-08 23:30:08 +02:00
* Update ReadTheDocs settings to v2 to resolve urllib3 issue in linkcheck extension (Thibaud Colas)
2023-05-17 00:00:49 +02:00
* Update documentation for `log_action` parameter on `RevisionMixin.save_revision` (Christer Jensen)
2023-05-24 12:07:50 +02:00
* Reorganise snippets documentation to cover customisations and optional features (Sage Abdullah)
2023-06-12 11:54:51 +02:00
* Update color customisations guidance to include theme-agnostic options (Thibaud Colas)
2023-06-12 16:38:14 +02:00
* Mark LTS releases in release note page titles (Thiago C. S. Tioma)
2023-04-21 13:28:31 +02:00
### Maintenance
* Switch to ruff for flake8 / isort code checking (Oliver Parker)
2023-06-01 14:41:24 +02:00
* Deprecate `insert_editor_css` in favour of `insert_global_admin_css` (Ester Beltrami)
2023-06-07 16:51:24 +02:00
* Optimise use of `specific` on Task and TaskState (Matt Westcott)
2023-06-07 13:08:04 +02:00
* Use table UI component for workflow task index view (Matt Westcott)
2023-06-09 15:18:10 +02:00
* Make header search available on generic index view (Matt Westcott)
2023-06-10 14:09:33 +02:00
* Update pagination behaviour to reject out-of-range / invalid page numbers (Matt Westcott)
2023-06-12 11:54:51 +02:00
* Remove color tokens which are duplicates / unused (Thibaud Colas)
* Add tests to help with maintenance of theme color tokens (Thibaud Colas)
2023-04-21 13:28:31 +02:00
## Upgrade considerations
2023-06-01 14:41:24 +02:00
### `insert_editor_css` hook is deprecated
The `insert_editor_css` hook has been deprecated. The `insert_global_admin_css` hook has the same functionality, and all uses of `insert_editor_css` should be changed to `insert_global_admin_css` .