mirror of
https://github.com/wagtail/wagtail.git
synced 2024-11-25 13:10:14 +01:00
169045b186
A form field with multiple checkboxes may introduce submissions that have more than one value. The `send_email` function would loop through all form fields and grab only the first item of each field, ignoring fields that may have multiple values selected. This is a side effect of using `QueryDict.get()`, which will only return the last value of a list. This commit fixes that by first converting the `QueryDict` instance to a regular dict of lists so that `get` will return all values, then joining multiple items if needed.
53 lines
2.4 KiB
ReStructuredText
53 lines
2.4 KiB
ReStructuredText
==========================================
|
|
Wagtail 1.8 release notes - IN DEVELOPMENT
|
|
==========================================
|
|
|
|
.. contents::
|
|
:local:
|
|
:depth: 1
|
|
|
|
|
|
What's new
|
|
==========
|
|
|
|
|
|
New page privacy options
|
|
~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
Previously users with publishing permissions were able to make a page available by password. Now they also can make the page to be accessible to logged-in users or to users from specific groups. This feature was developed by Matt Westcott.
|
|
|
|
See: :ref:`private_pages`
|
|
|
|
|
|
Minor features
|
|
~~~~~~~~~~~~~~
|
|
|
|
* Added support of a custom ``edit_handler`` for site settings. See :ref:`docs for the site settings module <edit_handlers_settings>`. (Axel Haustant)
|
|
* Added ``get_landing_page_template`` getter method to ``AbstractForm`` (Gagaro)
|
|
* Added ``Page.get_admin_display_title`` method to override how the title is displayed in the admin (Henk-Jan van Hasselaar)
|
|
* Added support for specifying custom HTML attributes for table rows on ModelAdmin index pages. See :ref:`modeladmin_get_extra_attrs_for_row` (Andy Babic)
|
|
* Added ``first_common_ancestor`` method to ``PageQuerySet`` (Tim Heap)
|
|
* Page chooser now opens at the deepest ancestor page that covers all the pages of the required page type (Tim Heap)
|
|
* ``PageChooserBlock`` now accepts a ``target_model`` option to specify the required page type (Tim Heap)
|
|
|
|
|
|
Bug fixes
|
|
~~~~~~~~~
|
|
|
|
* ``AbstractForm`` now respects custom ``get_template`` methods on the page model (Gagaro)
|
|
* Use specific page model for the parent page in the explore index (Gagaro)
|
|
* Remove responsive styles in embed when there is no ratio available (Gagaro)
|
|
* Parent page link in page search modal no longer disappears on hover (Dan Braghis)
|
|
* ModelAdmin views now consistently call ``get_context_data`` (Andy Babic)
|
|
* Header for search results on the redirects index page now shows the correct count when the listing is paginated (Nick Smith)
|
|
* ``set_url_paths`` management command is now compatible with Django 1.10 (Benjamin Bach)
|
|
* Form builder email notifications now output multiple values correctly (Sævar Öfjörð Magnússon)
|
|
|
|
Upgrade considerations
|
|
======================
|
|
|
|
``wagtail.wagtailimages.models.get_image_model`` has moved
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
The ``get_image_model`` function should now be imported from ``wagtail.wagtailimages`` rather than ``wagtail.wagtailimages.models``. See :ref:`custom_image_model_referring_to_image_model`.
|