Skip to content

Commit

Permalink
6.0 release - Add versionadded sections & release notes links
Browse files Browse the repository at this point in the history
  • Loading branch information
lb- authored and gasman committed Jan 24, 2024
1 parent 65e693c commit b81f369
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 2 deletions.
4 changes: 4 additions & 0 deletions docs/advanced_topics/customisation/page_editing_interface.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,10 @@ so the form field for a model field can be overridden by adding it to the custom

## Customising the generated copy page form

```{versionadded} 6.0
```

```{eval-rst}
.. class:: wagtail.admin.forms.CopyForm
```
Expand Down
4 changes: 4 additions & 0 deletions docs/extending/generic_views.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ If neither `panels` nor `edit_handler` is defined and the {meth}`~ModelViewSet.g

### Copy view

```{versionadded} 6.0
```

The copy view is enabled by default and will be accessible by users with the 'add' permission on the model. To disable it, set {attr}`~.ModelViewSet.copy_view_enabled` to `False`.

The view's form will be generated in the same way as create or edit forms. To use a custom form, override the `copy_view_class` and modify the `form_class` property on that class.
Expand Down
2 changes: 2 additions & 0 deletions docs/reference/settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,8 @@ WAGTAILADMIN_USER_LOGIN_FORM = 'users.forms.LoginForm'

Allows the default `LoginForm` to be extended with extra fields.

(wagtailadmin_login_url)=

### `WAGTAILADMIN_LOGIN_URL`

```python
Expand Down
4 changes: 2 additions & 2 deletions docs/releases/6.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ This feature was implemented by Nick Lee, Thibaud Colas, and Sage Abdullah.

### Other features

* Added `search_index` option to StreamField blocks to control whether the block is indexed for searching (Vedant Pandey)
* Added [`search_index` option to StreamField](streamfield_search) blocks to control whether the block is indexed for searching (Vedant Pandey)
* Remember previous location on returning from page add/edit actions (Robert Rollins)
* Update settings file in project settings to address Django 4.2 deprecations (Sage Abdullah)
* Improve layout and accessibility of the image URL generator page, reduce reliance on JavaScript (Temidayo Azeez)
Expand Down Expand Up @@ -75,7 +75,7 @@ This feature was implemented by Nick Lee, Thibaud Colas, and Sage Abdullah.
* Move locale selector in generic IndexView to a filter (Sage Abdullah)
* Add optional caption field to `TypedTableBlock` (Tommaso Amici, Cynthia Kiser)
* Switch the `TableBlock` header controls to a field that requires user input (Bhuvnesh Sharma, Aman Pandey, Cynthia Kiser)
* Add `WAGTAILADMIN_LOGIN_URL` setting to allow customising the login URL (Neeraj Yetheendran)
* Add [`WAGTAILADMIN_LOGIN_URL` setting](wagtailadmin_login_url) to allow customising the login URL (Neeraj Yetheendran)
* Replace legacy dropdown component with new Tippy dropdown-button (Thibaud Colas)
* Add ability to filter by existence of child pages in the page listing view (Matt Westcott)
* Polish dark theme styles and update color tokens (Thibaud Colas, Rohit Sharma)
Expand Down
4 changes: 4 additions & 0 deletions docs/topics/snippets/customising.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ Additionally, you can customise the base queryset for the listing view by overri

## Copy view

```{versionadded} 6.0
```

The copy view is enabled by default and will be accessible by users with the 'add' permission on the model. To disable it, set {attr}`~.ModelViewSet.copy_view_enabled` to `False`. Refer to [the copy view customisations for `ModelViewSet`](modelviewset_copy) for more details.

## Inspect view
Expand Down
6 changes: 6 additions & 0 deletions docs/topics/streamfield.md
Original file line number Diff line number Diff line change
Expand Up @@ -577,8 +577,14 @@ hero_image = my_page.body.first_block_by_name('image')
<div class="hero-image">{{ page.body.first_block_by_name.image }}</div>
```

(streamfield_search)=

## Search considerations

```{versionadded} 6.0
```

Like any other field, content in a StreamField can be made searchable by adding the field to the model's search_fields definition - see {ref}`wagtailsearch_indexing_fields`. By default, all text content from the stream will be added to the search index. If you wish to exclude certain block types from being indexed, pass the keyword argument `search_index=False` as part of the block's definition. For example:

```python
Expand Down

0 comments on commit b81f369

Please sign in to comment.