wagtail/docs/releases/1.3.rst

51 wiersze
2.3 KiB
ReStructuredText
Czysty Zwykły widok Historia

==========================================
Wagtail 1.3 release notes - IN DEVELOPMENT
==========================================
.. contents::
:local:
:depth: 1
What's new
==========
Minor features
~~~~~~~~~~~~~~
2015-11-18 13:04:50 +00:00
* Added ``WAGTAIL_PASSWORD_RESET_ENABLED`` setting to allow password resets to be disabled independently of the password management interface (John Draper)
2015-11-18 17:04:39 +00:00
* Updated fonts for more comprehensive Unicode support
2015-11-19 15:30:23 +00:00
* Added ``.alt`` attribute to image renditions
* The default ``src``, ``width``, ``height`` and ``alt`` attributes can now be overridden by attributes passed to the ``{% image %}`` tag
2015-11-27 16:15:21 +00:00
* Added keyboard shortcuts for preview and save in the page editor
2015-12-03 13:19:44 +00:00
* Added ``Page`` methods ``can_exist_under``, ``can_create_at``, ``can_move_to`` for customising page type business rules
2015-11-18 13:04:50 +00:00
Bug fixes
~~~~~~~~~
2015-11-17 11:36:57 +00:00
* HTTP cache purge now works again on Python 2 (Mitchel Cabuloy)
* Locked pages can no longer be unpublished (Alex Bridge)
* Site records now implement ``get_by_natural_key``
2015-12-01 13:17:31 +00:00
* Creating pages at the root level (and any other instances of the base ``Page`` model) now properly respects the `parent_page_types` setting
* Settings menu now opens correctly from the page editor and styleguide views
2015-12-03 13:19:44 +00:00
* ``subpage_types`` / ``parent_page_types`` business rules are now enforced when moving pages
2015-11-17 11:36:57 +00:00
Upgrade considerations
======================
ContentType-returning methods in wagtailcore are deprecated
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The following internal functions and methods in ``wagtail.wagtailcore.models``, which return a list of ``ContentType`` objects, have been deprecated. Any uses of these in your code should be replaced by the corresponding new function which returns a list of model classes instead:
* ``get_page_types()`` - replaced by ``get_page_models()``
* ``Page.clean_subpage_types()`` - replaced by ``Page.clean_subpage_models()``
* ``Page.clean_parent_page_types()`` - replaced by ``Page.clean_parent_page_models()``
* ``Page.allowed_parent_page_types()`` - replaced by ``Page.allowed_parent_page_models()``
* ``Page.allowed_subpage_types()`` - replaced by ``Page.allowed_subpage_models()``
2015-12-01 13:17:31 +00:00
In addition, note that these methods now return page types that are marked as ``is_creatable = False``, including the base ``Page`` class. (Abstract models are not included, as before.)