kopia lustrzana https://github.com/wagtail/wagtail
Full release note for FieldPanel / InlinePanel shorthand
rodzic
ab7547c6cb
commit
03f5352fe0
|
@ -42,6 +42,20 @@ Building upon improvements in past versions, this releases comes with further en
|
|||
|
||||
Thank you to Matt Westcott, Thibaud Colas, and Cynthia Kiser for their work on these improvements.
|
||||
|
||||
### Shorthand for `FieldPanel` and `InlinePanel`
|
||||
|
||||
Plain strings can now be used in panel definitions as a substitute for `FieldPanel` and `InlinePanel`, avoiding the need to import these classes from `wagtail.admin.panels`:
|
||||
|
||||
```python
|
||||
class MyPage(Page):
|
||||
body = RichTextField()
|
||||
content_panels = [
|
||||
'body',
|
||||
]
|
||||
```
|
||||
|
||||
This feature was developed by Matt Westcott.
|
||||
|
||||
### Other features
|
||||
|
||||
* Add search terms report (Noah van der Meer, Sage Abdullah)
|
||||
|
@ -51,7 +65,6 @@ Thank you to Matt Westcott, Thibaud Colas, and Cynthia Kiser for their work on t
|
|||
* Set sensible defaults for InlinePanel heading and label (Matt Westcott)
|
||||
* Limit tags autocompletion to 10 items and add delay to avoid performance issues with large number of matching tags (Aayushman Singh)
|
||||
* Add the ability to restrict what types of requests a Pages supports via [`allowed_http_methods`](#wagtail.models.Page.allowed_http_methods) (Andy Babic)
|
||||
* Allow plain strings in panel definitions as shorthand for `FieldPanel` / `InlinePanel` (Matt Westcott)
|
||||
* Only allow selection of valid new parents within the copy Page view (Mauro Soche)
|
||||
* Add [`on_serve_page`](on_serve_page) hook to modify the serving chain of pages (Krystian Magdziarz, Dawid Bugajewski)
|
||||
* Add support for [`WAGTAIL_GRAVATAR_PROVIDER_URL`](wagtail_gravatar_provider_url) URLs with query string parameters (Ayaan Qadri, Guilhem Saurel)
|
||||
|
@ -82,7 +95,7 @@ Thank you to Matt Westcott, Thibaud Colas, and Cynthia Kiser for their work on t
|
|||
* Ensure Cloudfront cache invalidation is called with a list, for compatibility with current botocore versions (Jake Howard)
|
||||
* Show the correct privacy status in the sidebar when creating a new page (Joel William)
|
||||
* Prevent generic model edit view from unquoting non-integer primary keys multiple times (Matt Westcott)
|
||||
* Ensure comments are functional when editing Page models with `read_only` `Fieldpanel`s in use (Strapchay)
|
||||
* Ensure comments are functional when editing Page models with `read_only` `FieldPanel`s in use (Strapchay)
|
||||
* Ensure the accessible labels and tooltips reflect the correct private/public status on the live link button within pages after changing the privacy (Ayaan Qadri)
|
||||
* Fix empty `th` (table heading) elements that are not compliant with accessibility standards (Jai Vignesh J)
|
||||
* Ensure `MultipleChooserPanel` using images or documents work when nested within an `InlinePanel` when no other choosers are in use within the model (Elhussein Almasri)
|
||||
|
|
Ładowanie…
Reference in New Issue