wagtail/docs/releases/1.5.rst

60 wiersze
1.9 KiB
ReStructuredText
Czysty Zwykły widok Historia

2016-03-11 12:02:13 +00:00
==========================================
Wagtail 1.5 release notes - IN DEVELOPMENT
==========================================
.. contents::
:local:
:depth: 1
What's new
==========
2016-03-11 15:33:10 +00:00
Minor features
~~~~~~~~~~~~~~
* Moved lesser-user actions in the page explorer into a 'More' dropdown
* Added a hook :ref:`register_page_listing_buttons` for adding action buttons to the page explorer
2016-03-11 17:21:53 +00:00
* Added a hook :ref:`insert_global_admin_js` for inserting custom JavaScript throughout the admin backend (Tom Dyson)
* The type of the ``search_fields`` attribute on ``Page`` models (and other searchable models) has changed from a tuple to a list (see upgrade consideration below) (Tim Heap)
* Use `PasswordChangeForm` when user changes their password, requiring the user to enter their current password (Matthijs Melissen)
2016-03-22 03:36:21 +00:00
* Highlight current day in date picker (Jonas Lergell)
Bug fixes
~~~~~~~~~
* The currently selected day is now highlighted only in the correct month in date pickers (Jonas Lergell)
2016-03-11 15:33:10 +00:00
2016-03-11 12:02:13 +00:00
Upgrade considerations
======================
The ``search_fields`` attribute on models should now be set to a list
=====================================================================
On searchable models (eg, ``Page`` or custom ``Image`` models) the ``search_fields`` attribute should now be a list instead of a tuple.
For example, the following ``Page`` model:
.. code-block:: python
class MyPage(Page):
...
search_fields = Page.search_fields + (
indexed.SearchField('body'),
)
Should be changed to:
.. code-block:: python
class MyPage(Page):
...
search_fields = Page.search_fields + [
indexed.SearchField('body'),
]
To ease the burden on third-party modules, adding tuples to ``Page.search_fields`` will still work. But this backwards-compatibility fix will be removed in Wagtail 1.7.