0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-29 17:36:49 +01:00
wagtail/docs/releases/2.16.md

56 lines
2.9 KiB
Markdown
Raw Normal View History

2021-10-22 19:30:44 +02:00
# Wagtail 2.16 release notes - IN DEVELOPMENT
```eval_rst
.. contents::
:local:
:depth: 1
```
## What's new
### Other features
2022-01-05 15:18:04 +01:00
* Added persistent IDs for ListBlock items, allowing commenting and improvements to revision comparisons (Matt Westcott, Tidjani Dia)
2021-11-17 16:49:12 +01:00
* Added Aging Pages report (Tidjani Dia)
* Add more SketchFab oEmbed patterns for models (Tom Usher)
* Add collapse option to `StreamField`, `StreamBlock`, and `ListBlock` which will load all sub-blocks initially collapsed (Matt Westcott)
* Private pages can now be fetched over the API (Nabil Khalil)
* Added `alias_of` field to the pages API (Dmitrii Faiazov)
2020-05-27 10:15:44 +02:00
* Add support for Azure CDN and Front Door front-end cache invalidation (Tomasz Knapik)
2021-12-20 19:10:08 +01:00
* Fixed `default_app_config` deprecations for Django >= 3.2 (Tibor Leupold)
2021-10-05 23:16:37 +02:00
* Removed WOFF fonts
* Improved styling of workflow timeline modal view (Tidjani Dia)
2022-01-07 17:37:21 +01:00
* Add secondary actions menu in edit page headers (Tidjani Dia)
* Add system check for missing core Page fields in `search_fields` (LB (Ben Johnston))
* Improve CircleCI frontend & backend build caches (Thibaud Colas)
2021-10-22 19:30:44 +02:00
### Bug fixes
* Accessibility fixes for Windows high contrast mode; Dashboard icons colour and contrast (Sakshi Uppoor)
2021-11-05 19:54:34 +01:00
* Rename additional 'spin' CSS animations to avoid clashes with other libraries (Kevin Gutiérrez)
* Pages are refreshed from database on create before passing to hooks. Page aliases get correct `first_published_date` and `last_published_date` (Dan Braghis)
2022-01-05 16:35:19 +01:00
* Additional login form fields from `WAGTAILADMIN_USER_LOGIN_FORM` are now rendered correctly (Michael Karamuth)
* Fix icon only button styling issue on small devices where height would not be set correctly (Vu Pham)
* Add padding to the Draftail editor to ensure `ol` items are not cut off (Khanh Hoang)
2021-10-22 19:30:44 +02:00
## Upgrade considerations
2021-11-17 21:19:30 +01:00
### Removed support for Python 3.6
Python 3.6 is no longer supported as of this release; please upgrade to Python 3.7 or above before upgrading Wagtail.
### StreamField ListBlock now returns `ListValue` rather than a list instance
The data type returned as the value of a ListBlock is now a custom class, `ListValue`, rather than a Python `list` object. This change allows it to provide a `bound_blocks` property that exposes the list items as [`BoundBlock` objects](../advanced_topics/boundblocks_and_values) rather than plain values. `ListValue` objects are mutable sequences that behave similarly to lists, and so all code that iterates over them, accesses individual elements, or manipulates them should continue to work. However, code that specifically expects a `list` object (e.g. using `isinstance` or testing for equality against a list) may need to be updated. For example, a unit test that tests the value of a `ListBlock` as follows:
```python
self.assertEqual(page.body[0].value, ['hello', 'goodbye'])
```
should be rewritten as:
```python
self.assertEqual(list(page.body[0].value), ['hello', 'goodbye'])
```