2023-04-21 11:28:31 +00:00
# Wagtail 5.1 release notes - IN DEVELOPMENT
_Unreleased_
```{contents}
---
local:
depth: 1
---
```
## What's new
2023-04-25 16:08:19 +00: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 11:28:31 +00:00
### Other features
2023-03-05 15:57:33 +00:00
* Mark calls to `md5` as not being used for secure purposes, to avoid flagging on FIPS-mode systems (Sean Kelly)
2023-04-17 16:53:57 +00:00
* Return filters from `parse_query_string` as a `QueryDict` to support multiple values (Aman Pandey)
2023-06-01 13:01:23 +00:00
* Explicitly specify `MenuItem.name` for all admin menu and submenu items (Justin Koestinger)
2023-04-21 11:28:31 +00:00
### Bug fixes
2023-04-19 15:40:38 +00: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 10:00:21 +00:00
* Move comment notifications toggle to the comments side panel (Sage Abdullah)
2023-05-23 07:22:21 +00:00
* Remove comment button on InlinePanel fields (Sage Abdullah)
2023-05-20 10:20:31 +00:00
* Fix missing link to `UsageView` from `EditView` for snippets (Christer Jensen)
2023-05-22 19:01:56 +00:00
* Prevent lowercase conversions of IndexView column headers (Virag Jain)
2023-06-09 08:48:01 +00:00
* Ensure that `RichText` objects with the same values compare as equal (NikilTn)
2023-06-10 15:35:53 +00:00
* Use `gettext_lazy` on generic model views so that language settings are correctly used (Matt Westcott)
2023-06-13 12:05:51 +00:00
* Prevent JS error when reverting the spinner on a submit button after a validation error (LB (Ben) Johnston)
2023-04-21 11:28:31 +00:00
### Documentation
2023-02-04 17:02:07 +00:00
* Document how to add non-ModelAdmin views to a `ModelAdminGroup` (Onno Timmerman)
2023-03-13 14:43:01 +00:00
* Document how to add StructBlock data to a StreamField (Ramon Wenger)
2023-05-08 21:30:08 +00:00
* Update ReadTheDocs settings to v2 to resolve urllib3 issue in linkcheck extension (Thibaud Colas)
2023-05-16 22:00:49 +00:00
* Update documentation for `log_action` parameter on `RevisionMixin.save_revision` (Christer Jensen)
2023-05-24 10:07:50 +00:00
* Reorganise snippets documentation to cover customisations and optional features (Sage Abdullah)
2023-06-12 09:54:51 +00:00
* Update color customisations guidance to include theme-agnostic options (Thibaud Colas)
2023-06-12 14:38:14 +00:00
* Mark LTS releases in release note page titles (Thiago C. S. Tioma)
2023-04-21 11:28:31 +00:00
### Maintenance
* Switch to ruff for flake8 / isort code checking (Oliver Parker)
2023-06-01 12:41:24 +00:00
* Deprecate `insert_editor_css` in favour of `insert_global_admin_css` (Ester Beltrami)
2023-06-07 14:51:24 +00:00
* Optimise use of `specific` on Task and TaskState (Matt Westcott)
2023-06-07 11:08:04 +00:00
* Use table UI component for workflow task index view (Matt Westcott)
2023-06-09 13:18:10 +00:00
* Make header search available on generic index view (Matt Westcott)
2023-06-10 12:09:33 +00:00
* Update pagination behaviour to reject out-of-range / invalid page numbers (Matt Westcott)
2023-06-12 09:54:51 +00:00
* Remove color tokens which are duplicates / unused (Thibaud Colas)
* Add tests to help with maintenance of theme color tokens (Thibaud Colas)
2023-06-13 09:58:50 +00:00
* Split out a base listing view from generic index view (Matt Westcott)
2023-04-21 11:28:31 +00:00
## Upgrade considerations
2023-06-01 12:41:24 +00: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` .