2018-12-07 12:25:40 +01:00
==========================================
Wagtail 2.5 release notes - IN DEVELOPMENT
==========================================
.. contents ::
:local:
:depth: 1
What's new
==========
Other features
~~~~~~~~~~~~~~
2019-01-11 16:22:37 +01:00
* Added support for customising EditHandler-based forms on a per-request basis (Bertrand Bordage)
2018-12-30 07:32:28 +01:00
* Added more informative error message when `` |richtext `` filter is applied to a non-string value (mukesh5)
2018-12-07 12:00:30 +01:00
* Automatic search indexing can now be disabled on a per-model basis via the `` search_auto_update `` attribute (Karl Hobley)
2018-11-28 21:58:35 +01:00
* Improved diffing of StreamFields when comparing page revisions (Karl Hobley)
2019-02-02 18:04:01 +01:00
* Highlight broken links to pages and missing documents in rich text (Brady Moe)
2019-02-06 23:01:03 +01:00
* Preserve links when copy-pasting rich text content from Wagtail to other tools (Thibaud Colas)
2018-11-26 20:28:49 +01:00
* Rich text to contentstate conversion now prioritises more specific rules, to accommodate `` <p> `` and `` <br> `` elements with attributes (Matt Westcott)
2019-02-23 15:15:07 +01:00
* Added limit image upload size by number of pixels (Thomas Elliott)
2019-01-25 15:48:22 +01:00
* Added `` manage.py wagtail_update_index `` alias to avoid clashes with `` update_index `` commands from other packages (Matt Westcott)
2019-03-06 12:24:44 +01:00
* Renamed `` target_model `` argument on `` PageChooserBlock `` to `` page_type `` (Loic Teixeira)
2018-11-14 16:30:03 +01:00
* `` edit_handler `` and `` panels `` can now be defined on a `` ModelAdmin `` definition (Thomas Kremmel)
2019-03-01 17:41:44 +01:00
* Add Learn Wagtail to third-party tutorials in documentation (Matt Westcott)
2019-03-04 21:17:48 +01:00
* Add a Django setting `` TAG_LIMIT `` to limit number of tags that can be added to any taggit model (Mani)
2019-01-30 10:30:15 +01:00
* Added instructions on how to generate urls for `` ModelAdmin `` to documentation (LB (Ben Johnston), Andy Babic)
2018-12-30 07:32:28 +01:00
2018-12-07 12:25:40 +01:00
Bug fixes
~~~~~~~~~
2018-12-07 21:17:17 +01:00
* Set `` SERVER_PORT `` to 443 in `` Page.dummy_request() `` for HTTPS sites (Sergey Fedoseev)
2018-12-12 06:30:32 +01:00
* Include port number in `` Host `` header of `` Page.dummy_request() `` (Sergey Fedoseev)
2018-12-14 18:44:46 +01:00
* Validation error messages in `` InlinePanel `` no longer count towards `` max_num `` when disabling the 'add' button (Todd Dembrey, Thibaud Colas)
2019-01-23 16:20:13 +01:00
* Rich text to contentstate conversion now ignores stray closing tags (frmdstryr)
2019-01-26 16:39:45 +01:00
* Escape backslashes in `` postgres_search `` queries (Hammy Goonan)
2019-01-29 12:58:12 +01:00
* Parent page link in page chooser search results no longer navigates away (Asanka Lihiniyagoda, Sævar Öfjörð Magnússon)
2019-02-24 12:37:50 +01:00
* `` routablepageurl `` tag now correctly omits domain part when multiple sites exist at the same root (Gassan Gousseinov)
2019-02-27 16:18:10 +01:00
* Added missing collection column specifier on document listing template (Sergey Fedoseev)
2019-02-26 23:04:56 +01:00
* Page Copy will now also copy ParentalManyToMany field relations (LB (Ben Johnston))
2019-02-19 13:31:36 +01:00
* Admin HTML header now includes correct language code (Matt Westcott)
2019-02-03 17:47:51 +01:00
* Unclear error message when saving image after focal point edit (Hugo van den Berg)
2019-03-04 09:51:51 +01:00
* Fix: Increase max length on `` Embed.thumbnail_url `` to 255 characters (Kevin Howbrook)
2019-02-02 01:05:16 +01:00
* Fix: `` send_mail `` now correctly uses the `` html_message `` kwarg for HTML messages (Tiago Requeijo)
2018-12-07 21:17:17 +01:00
2018-12-07 12:25:40 +01:00
Upgrade considerations
======================
2019-01-11 16:22:37 +01:00
`` EditHandler.bind_to_model `` and `` EditHandler.bind_to_instance `` deprecated
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The internal `` EditHandler `` methods `` bind_to_model `` and `` bind_to_instance `` have been deprecated, in favour of a new combined `` bind_to `` method which accepts `` model `` , `` instance `` , `` request `` and `` form `` as optional keyword arguments. Any user code which calls `` EditHandler.bind_to_model(model) `` should be updated to use `` EditHandler.bind_to(model=model) `` instead; any user code which calls `` EditHandler.bind_to_instance(instance, request, form) `` should be updated to use `` EditHandler.bind_to(instance=instance, request=request, form=form) `` .