mirror of
https://github.com/wagtail/wagtail.git
synced 2024-12-01 11:41:20 +01:00
39 lines
1.8 KiB
ReStructuredText
39 lines
1.8 KiB
ReStructuredText
==========================================
|
|
Wagtail 2.5 release notes - IN DEVELOPMENT
|
|
==========================================
|
|
|
|
.. contents::
|
|
:local:
|
|
:depth: 1
|
|
|
|
|
|
What's new
|
|
==========
|
|
|
|
|
|
Other features
|
|
~~~~~~~~~~~~~~
|
|
|
|
* 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)
|
|
|
|
|
|
Bug fixes
|
|
~~~~~~~~~
|
|
|
|
* Set ``SERVER_PORT`` to 443 in ``Page.dummy_request()`` for HTTPS sites (Sergey Fedoseev)
|
|
* Include port number in ``Host`` header of ``Page.dummy_request()`` (Sergey Fedoseev)
|
|
* Validation error messages in ``InlinePanel`` no longer count towards ``max_num`` when disabling the 'add' button (Todd Dembrey, Thibaud Colas)
|
|
* Rich text to contentstate conversion now ignores stray closing tags (frmdstryr)
|
|
* Escape backslashes in ``postgres_search`` queries (Hammy Goonan)
|
|
* Parent page link in page chooser search results no longer navigates away (Asanka Lihiniyagoda, Sævar Öfjörð Magnússon)
|
|
|
|
|
|
Upgrade considerations
|
|
======================
|
|
|
|
``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)``.
|