Wagtail v2.5 Release Notes
Release Date: 2019-04-24 // about 5 years ago-
- π Django 2.2 support (Matt Westcott, Andy Babic)
- β Added support for customising EditHandler-based forms on a per-request basis (Bertrand Bordage)
- β Added more informative error message when
|richtext
filter is applied to a non-string value (mukesh5) - Automatic search indexing can now be disabled on a per-model basis via the
search_auto_update
attribute (Karl Hobley) - π Improved diffing of StreamFields when comparing page revisions (Karl Hobley)
- Highlight broken links to pages and missing documents in rich text (Brady Moe)
- Preserve links when copy-pasting rich text content from Wagtail to other tools (Thibaud Colas)
- Rich text to contentstate conversion now prioritises more specific rules, to accommodate
<p>
and<br>
elements with attributes (Matt Westcott) - β Added limit image upload size by number of pixels (Thomas Elliott)
- β‘οΈ Added
manage.py wagtail_update_index
alias to avoid clashes withupdate_index
commands from other packages (Matt Westcott) - Renamed
target_model
argument onPageChooserBlock
topage_type
(Loic Teixeira) edit_handler
andpanels
can now be defined on aModelAdmin
definition (Thomas Kremmel)- β Add Learn Wagtail to third-party tutorials in documentation (Matt Westcott)
- β Add a Django setting
TAG_LIMIT
to limit number of tags that can be added to any taggit model (Mani) - β Added instructions on how to generate urls for
ModelAdmin
to documentation (LB (Ben Johnston), Andy Babic) - β Added option to specify a fallback URL on
{% pageurl %}
(Arthur Holzner) - β Add support for more rich text formats, disabled by default:
blockquote
,superscript
,subscript
,strikethrough
,code
(Md Arifin Ibne Matin) - Added
max_count_per_parent
option on page models to limit the number of pages of a given type that can be created under one parent page (Wesley van Lee) StreamField
field blocks now accept avalidators
argument (Tom Usher)- β Added edit / delete buttons to snippet index and "don't delete" option to confirmation screen, for consistency with pages (Kevin Howbrook)
- Added support for Markdown shortcuts for inline formatting in rich text editor, e.g.
**
for bold,_
for italic, etc. (Thibaud Colas) - β Added name attributes to all built-in page action menu items (LB (Ben Johnston))
- β Added validation on the filter string to the Jinja2 image template tag (Jonny Scholes)
- π Changed the pages reordering UI toggle to make it easier to find (Katie Locke, Thibaud Colas)
- β Added support for rich text link rewrite handlers for
external
andemail
links (Md Arifin Ibne Matin) - π Clarify installation instructions in documentation, especially regarding virtual environments. (Naomi Morduch Toubman)
- Fix: Set
SERVER_PORT
to 443 inPage.dummy_request()
for HTTPS sites (Sergey Fedoseev) - π Fix: Include port number in
Host
header ofPage.dummy_request()
(Sergey Fedoseev) - π Fix: Validation error messages in
InlinePanel
no longer count towardsmax_num
when disabling the 'add' button (Todd Dembrey, Thibaud Colas) - π Fix: Rich text to contentstate conversion now ignores stray closing tags (frmdstryr)
- π Fix: Escape backslashes in
postgres_search
queries (Hammy Goonan) - π Fix: Parent page link in page chooser search results no longer navigates away (Asanka Lihiniyagoda, SΓ¦var ΓfjΓΆrΓ° MagnΓΊsson)
- π Fix:
routablepageurl
tag now correctly omits domain part when multiple sites exist at the same root (Gassan Gousseinov) - π Fix: Added missing collection column specifier on document listing template (Sergey Fedoseev)
- π Fix: Page Copy will now also copy ParentalManyToMany field relations (LB (Ben Johnston))
- π Fix: Admin HTML header now includes correct language code (Matt Westcott)
- π Fix: Unclear error message when saving image after focal point edit (Hugo van den Berg)
- Fix:
send_mail
now correctly uses thehtml_message
kwarg for HTML messages (Tiago Requeijo) - π Fix: Page copying no longer allowed if page model has reached its
max_count
(Andy Babic) - π Fix: Don't show page type on page chooser button when multiple types are allowed (Thijs Kramer)
- π Fix: Make sure page chooser search results correspond to the latest search by canceling previous requests (Esper Kuijs)
- π Fix: Inform user when moving a page from one parent to another where there is an already existing page with the same slug (Casper Timmers)
- π Fix: User add/edit forms now support form widgets with JS/CSS media (Damian Grinwis)
- π Fix: Rich text processing now preserves non-breaking spaces instead of converting them to normal spaces (Wesley van Lee)
- π Fix: Prevent autocomplete dropdowns from appearing over date choosers on Chrome (Kevin Howbrook)
- π Fix: Prevent crash when logging HTTP errors from Cloudflare (Kevin Howbrook)
- π Fix: Prevent rich text editor crash when filtering copy-pasted content and the last block is to be removed, e.g. unsupported image (Thibaud Colas)
- π Fix: Removing rich text links / documents now also works when the text selection is backwards (Thibaud Colas)
- π Fix: Prevent the rich text editor from crashing when copy-paste filtering removes all of its content (Thibaud Colas)
- Fix: Page chooser now respects custom
get_admin_display_title
methods on parent page and breadcrumb (Haydn Greatnews) - π Fix: Added consistent whitespace around sortable table headings (Matt Westcott)
- Fix: Moved locale names for Chinese (Simplified) and Chinese (Traditional) to
zh_Hans
andzh_Hant
(Matt Westcott) - π Fix: Increase max length on
Embed.thumbnail_url
to 255 characters (Kevin Howbrook)