2019-07-09 17:51:48 +02:00
==========================================
Wagtail 2.7 release notes - IN DEVELOPMENT
==========================================
.. contents ::
:local:
:depth: 1
Wagtail 2.7 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 12 months).
What's new
==========
2019-08-23 16:53:48 +02:00
Improved StreamField design
~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. image :: ../_static/images/releasenotes_2_7_streamfield_styles.png
The design of the StreamField user interface has been updated to improve clarity and usability, including better handling of nested blocks. This work was completed by Bertrand Bordage as part of the `Wagtail's First Hatch <https://www.kickstarter.com/projects/noripyt/wagtails-first-hatch> `_ crowdfunding campaign. We would like to thank all `supporters of the campaign <https://wagtail.io/blog/wagtails-first-hatch-backers/> `_ .
2019-07-09 17:51:48 +02:00
2019-08-15 23:38:37 +02:00
2019-07-09 17:51:48 +02:00
Other features
~~~~~~~~~~~~~~
2019-07-08 09:57:30 +02:00
* Added `` construct_page_listing_buttons `` hook (Michael van Tellingen)
2019-07-04 11:24:05 +02:00
* Added more detailed documentation and troubleshooting for installing OpenCV for feature detection (Daniele Procida)
2019-04-24 23:45:14 +02:00
* Move and refactor upgrade notification JS (Jonny Scholes)
2019-08-15 16:29:27 +02:00
* Remove need for Elasticsearch `` update_all_types `` workaround, upgrade minimum release to 6.4.0 or above (Jonathan Liuti)
2019-08-13 18:24:00 +02:00
* Add ability to insert internal anchor links/links with fragment identifiers in Draftail (rich text) fields (Iman Syed)
2019-08-15 23:38:37 +02:00
* Added Table Block caption for accessibility (Rahmi Pruitt)
2019-08-06 21:28:12 +02:00
* Upgrade django-modelcluster to>=5.0 and upgrade django-taggit to >=1.0 for Django 3.0 support (Matt Westcott)
2019-08-07 01:08:20 +02:00
* Revise tests to ensure all pass in Django 3.0 (Matt Westcott)
2019-07-10 10:05:38 +02:00
* Add ability for users to change their own name via the account settings page (Kevin Howbrook)
2019-08-22 16:18:41 +02:00
* Add ability to insert telephone numbers as links in Draftail (rich text) fields (Mikael Engström and Liam Brenner)
2019-07-18 23:48:32 +02:00
* Increase delay before search in the snippet chooser, to prevent redundant search request round trips (Robert Rollins)
2019-05-10 13:45:14 +02:00
* Add `` WAGTAIL_EMAIL_MANAGEMENT_ENABLED `` setting to determine whether users can change their email address (Janne Alatalo)
2019-07-09 17:51:48 +02:00
Bug fixes
~~~~~~~~~
2019-07-25 11:46:41 +02:00
* Added line breaks to long filenames on multiple image / document uploader (Kevin Howbrook)
2019-07-25 08:49:41 +02:00
* Added https support for Scribd oEmbed provider (Rodrigo)
2019-07-26 22:39:11 +02:00
* Changed StreamField group label color so labels are visible (Catherine Farman)
2019-08-01 12:46:34 +02:00
* Prevented images with a very wide aspect ratio from being displayed distorted in the rich text editor (Iman Syed)
2019-07-17 20:56:52 +02:00
* Prevent exception when deleting a model with a protected One-to-one relationship (Neal Todd)
2019-08-05 19:12:08 +02:00
* Added labels to snippet bulk edit checkboxes for screen reader users (Martey Dodoo)
2019-08-08 13:54:37 +02:00
* Middleware responses during page preview are now properly returned to the user (Matt Westcott)
2019-08-07 23:00:02 +02:00
* Default text of page links in rich text uses the public page title rather than the admin display title (Andy Chosak)
2019-08-07 19:44:32 +02:00
* Specific page permission checks are now enforced when viewing a page revision (Andy Chosak)
2019-08-14 04:53:04 +02:00
* `` pageurl `` and `` slugurl `` tags no longer fail when `` request.site `` is `` None `` (Samir Shah)
2019-04-26 17:40:58 +02:00
* Output form media on add/edit image forms with custom models (Matt Westcott)
2018-09-27 10:47:20 +02:00
* Fixes layout for the clear checkbox in default FileField widget (Mikalai Radchuk)
2019-08-17 07:23:07 +02:00
* Remove ASCII conversion from Postgres search backend, to support stemming in non-Latin alphabets (Pavel Denisov)
2019-06-17 23:41:40 +02:00
* Prevent tab labels on page edit view from being cut off on very narrow screens (Kevin Howbrook)
2019-07-11 13:40:27 +02:00
* Very long words in page listings are now broken where necessary (Kevin Howbrook)
2019-08-22 17:42:42 +02:00
* Language chosen in user preferences no longer persists on subsequent requests (Bojan Mihelac)
2019-09-05 22:28:35 +02:00
* Prevent new block IDs from being assigned on repeated calls to `` StreamBlock.get_prep_value `` (Colin Klein)
2019-08-29 23:57:10 +02:00
* Prevent broken images in notification emails when static files are hosted on a remote domain (Eduard Luca)
2019-07-09 17:51:48 +02:00
Upgrade considerations
======================
2019-07-11 01:47:04 +02:00
`` Page.dummy_request `` is deprecated
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The internal `` Page.dummy_request `` method (which generates an HTTP request object simulating a real page request, for use in previews) has been deprecated, as it did not correctly handle errors generated during middleware processing. Any code that calls this method to render page previews should be updated to use the new method `` Page.make_preview_request(original_request=None, preview_mode=None) `` , which builds the request and calls `` Page.serve_preview `` as a single operation.
2019-08-15 20:40:43 +02:00
`` wagtail.admin.utils `` and `` wagtail.admin.decorators `` modules deprecated
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The modules `` wagtail.admin.utils `` and `` wagtail.admin.decorators `` have been deprecated. The helper functions defined here exist primarily for Wagtail's internal use; however, some of them (particularly `` send_mail `` and `` permission_required `` ) may be found in user code, and import lines will need to be updated. The new locations for these definitions are as follows:
+---------------------------------+--------------------------+--------------------------+
| Definition | Old location | New location |
+=================================+==========================+==========================+
| any_permission_required | wagtail.admin.utils | wagtail.admin.auth |
+---------------------------------+--------------------------+--------------------------+
| permission_denied | wagtail.admin.utils | wagtail.admin.auth |
+---------------------------------+--------------------------+--------------------------+
| permission_required | wagtail.admin.utils | wagtail.admin.auth |
+---------------------------------+--------------------------+--------------------------+
| PermissionPolicyChecker | wagtail.admin.utils | wagtail.admin.auth |
+---------------------------------+--------------------------+--------------------------+
| user_has_any_page_permission | wagtail.admin.utils | wagtail.admin.auth |
+---------------------------------+--------------------------+--------------------------+
| user_passes_test | wagtail.admin.utils | wagtail.admin.auth |
+---------------------------------+--------------------------+--------------------------+
| users_with_page_permission | wagtail.admin.utils | wagtail.admin.auth |
+---------------------------------+--------------------------+--------------------------+
| reject_request | wagtail.admin.decorators | wagtail.admin.auth |
+---------------------------------+--------------------------+--------------------------+
| require_admin_access | wagtail.admin.decorators | wagtail.admin.auth |
+---------------------------------+--------------------------+--------------------------+
| get_available_admin_languages | wagtail.admin.utils | wagtail.admin.locale |
+---------------------------------+--------------------------+--------------------------+
| get_available_admin_time_zones | wagtail.admin.utils | wagtail.admin.locale |
+---------------------------------+--------------------------+--------------------------+
| get_js_translation_strings | wagtail.admin.utils | wagtail.admin.locale |
+---------------------------------+--------------------------+--------------------------+
| WAGTAILADMIN_PROVIDED_LANGUAGES | wagtail.admin.utils | wagtail.admin.locale |
+---------------------------------+--------------------------+--------------------------+
| send_mail | wagtail.admin.utils | wagtail.admin.mail |
+---------------------------------+--------------------------+--------------------------+
| send_notification | wagtail.admin.utils | wagtail.admin.mail |
+---------------------------------+--------------------------+--------------------------+
| get_object_usage | wagtail.admin.utils | wagtail.admin.models |
+---------------------------------+--------------------------+--------------------------+
| popular_tags_for_model | wagtail.admin.utils | wagtail.admin.models |
+---------------------------------+--------------------------+--------------------------+
| get_site_for_user | wagtail.admin.utils | wagtail.admin.navigation |
+---------------------------------+--------------------------+--------------------------+