0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-25 13:10:14 +01:00
wagtail/docs/releases/1.12.rst

104 lines
6.9 KiB
ReStructuredText
Raw Normal View History

2017-08-21 15:02:19 +02:00
==========================
Wagtail 1.12 release notes
==========================
.. contents::
:local:
:depth: 1
Wagtail 1.12 is designated a Long Term Support (LTS) release. Long Term Support releases will continue to receive maintenance updates as necessary to address security and data-loss related issues, up until the next LTS release (typically a period of 8 months). Please note that Wagtail 1.12 will be the last LTS release to support Python 2.
What's new
==========
2017-07-26 17:17:19 +02:00
Configurable rich text features
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The feature set provided by the rich text editor can now be configured on a per-field basis, by passing a ``features`` keyword argument; for example, a field can be configured to allow bold / italic formatting and links, but not headings or embedded images or media. For further information, see :ref:`rich_text_features`. This feature was developed by Matt Westcott.
Improved embed configuration
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
New configuration options for embedded media have been added, to give greater control over how media URLs are converted to embeds, and to make it possible to specify additional media providers beyond the ones built in to Wagtail. For further information, see :ref:`embedded_content`. This feature was developed by Karl Hobley.
Other features
~~~~~~~~~~~~~~
2017-01-22 11:03:10 +01:00
* The admin interface now displays a title of the latest draft (Mikalai Radchuk)
2017-08-11 11:18:21 +02:00
* ``RoutablePageMixin`` now has a default "index" route (Andreas Nüßlein, Matt Westcott)
2016-09-22 18:56:54 +02:00
* Added multi-select form field to the form builder (dwasyl)
* Improved performance of sitemap generation (Levi Adler)
2017-08-01 01:17:02 +02:00
* StreamField now respects the ``blank`` setting; StreamBlock accepts a ``required`` setting (Loic Teixeira)
2017-08-01 15:58:37 +02:00
* StreamBlock now accepts ``min_num``, ``max_num`` and ``block_counts`` settings to control the minimum and maximum numbers of blocks (Edwar Baron, Matt Westcott)
* Users can no longer remove their own active / superuser flags through Settings -> Users (Stein Strindhaug, Huub Bouma)
2017-08-10 15:31:23 +02:00
* The ``process_form_submission`` method of form pages now return the created form submission object (Christine Ho)
* Added ``WAGTAILUSERS_PASSWORD_ENABLED`` and ``WAGTAILUSERS_PASSWORD_REQUIRED`` settings to permit creating users with no Django-side passwords, to support external authentication setups (Matt Westcott)
* Added help text parameter to ``DecimalBlock`` and ``RegexBlock`` (Tomasz Knapik)
* Optimised caudal oscillation parameters on logo (Jack Paine)
2016-09-22 18:56:54 +02:00
Bug fixes
~~~~~~~~~
* FieldBlocks in StreamField now call the field's ``prepare_value`` method (Tim Heap)
* Initial disabled state of InlinePanel add button is now set correctly on non-default tabs (Matthew Downey)
2017-06-30 10:33:35 +02:00
* Redirects with unicode characters now work (Rich Brennan)
2017-07-06 16:23:40 +02:00
* Prevent explorer view from crashing when page model definitions are missing, allowing the offending pages to be deleted (Matt Westcott)
* Hide the userbar from printed page representation (Eugene Morozov)
2017-08-02 13:28:28 +02:00
* Prevent the page editor footer content from collapsing into two lines unnecessarily (Jack Paine)
* StructBlock values no longer render HTML templates as their ``str`` representation, to prevent infinite loops in debugging / logging tools (Matt Westcott)
2017-08-01 15:50:09 +02:00
* Removed deprecated jQuery ``load`` call from TableBlock initialisation (Jack Paine)
2017-08-08 20:41:37 +02:00
* Position of options in mobile nav-menu (Jack Paine)
2017-08-08 20:55:08 +02:00
* Center page editor footer regardless of screen width (Jack Paine)
* Change the design of the navbar toggle icon so that it no longer obstructs page headers (Jack Paine)
* Document add/edit forms no longer render container elements for hidden fields (Jeffrey Chau)
Upgrade considerations
======================
2017-08-08 20:41:37 +02:00
StreamField now defaults to ``blank=False``
2017-08-01 01:17:02 +02:00
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
StreamField now respects the ``blank`` field setting; when this is false, at least one block must be supplied for the field to pass validation. To match the behaviour of other model fields, ``blank`` defaults to ``False``; if you wish to allow a StreamField to be left empty, you must now add ``blank=True`` to the field.
When passing an explicit ``StreamBlock`` as the top-level block of a StreamField definition, note that the StreamField's ``blank`` keyword argument always takes precedence over the block's ``required`` property, including when it is left as the default value of ``blank=False``. Consequently, setting ``required=False`` on a top-level ``StreamBlock`` has no effect.
2017-08-01 01:17:02 +02:00
Old configuration settings for embeds are deprecated
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The configuration settings ``WAGTAILEMBEDS_EMBED_FINDER`` and ``WAGTAILEMBEDS_EMBEDLY_KEY`` have been deprecated in favour of the new ``WAGTAILEMBEDS_FINDERS`` setting. Please see :ref:`configuring_embed_finders` for the new configuration to use.
2017-07-26 17:17:19 +02:00
Registering custom hallo.js plugins directly is deprecated
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The ability to enable / disable ``hallo.js`` plugins by calling ``registerHalloPlugin`` or modifying the ``halloPlugins`` list has been deprecated, and will be removed in Wagtail 1.14. The recommended way of customising the hallo.js editor is now through :ref:`rich text features <rich_text_features>`. For details of how to define a hallo.js plugin as a rich text feature, see :ref:`extending_wysiwyg`.
Custom ``get_admin_display_title`` methods should use ``draft_title``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This release introduces a new ``draft_title`` field on page models, so that page titles as used across the admin interface will correctly reflect any changes that exist in draft. If any of your page models override the ``get_admin_display_title`` method, to customise the display of page titles in the admin, it is recommended that you now update these to base their output on ``draft_title`` rather than ``title``. Alternatively, to preserve backwards compatibility, you can invoke ``super`` on the method, for example:
.. code-block:: python
def get_admin_display_title(self):
return "%(title)s (%(lang)s)" % {
'title': super(TranslatablePage, self).get_admin_display_title(),
'lang': self.language_code,
}
Fixtures for loading pages should include ``draft_title``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In most situations, the new ``draft_title`` field on page models will automatically be populated from the page title. However, this is not the case for pages that are created from fixtures. Projects that use fixtures to load initial data should therefore ensure that a ``draft_title`` field is specified.
2017-08-11 11:18:21 +02:00
``RoutablePageMixin`` now has a default index route
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If you've used ``RoutablePageMixin`` on a Page model, you may have had to manually define an index route to serve the page at its main URL (``r'^$'``) so it behaves like a normal page. Wagtail now defines a default index route so this is no longer required.