2
0

2.10.rst 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. ===========================================
  2. Wagtail 2.10 release notes - IN DEVELOPMENT
  3. ===========================================
  4. .. contents::
  5. :local:
  6. :depth: 1
  7. What's new
  8. ==========
  9. Search query expressions
  10. ~~~~~~~~~~~~~~~~~~~~~~~~
  11. Search queries can now be constructed as structured expressions in the manner of the Django ORM's ``Q()`` values, allowing for complex queries that combine individual terms, phrases and boosting. A helper function ``parse_query_string`` is provided to convert "natural" queries containing quoted phrases into these expressions. For complete documentation, see :ref:`wagtailsearch_complex_queries`. This feature was developed by Karl Hobley and sponsored by `The Motley Fool <https://www.fool.com/>`_.
  12. Other features
  13. ~~~~~~~~~~~~~~
  14. * Added ``webpquality`` and ``format-webp-lossless`` image filters and ``WAGTAILIMAGES_WEBP_QUALITY`` setting. See :ref:`output_image_format` and :ref:`image_quality` (Nikolay Lukyanov)
  15. * Reorganised Dockerfile in project template to follow best practices (Tomasz Knapik, Jannik Wempe)
  16. * Added filtering to locked pages report (Karl Hobley)
  17. * Adds ability to view a group's users via standalone admin URL and a link to this on the group edit view (Karran Besen)
  18. * Redirect to previous url when deleting/copying/unpublish a page and modify this url via the relevant hooks (Ascani Carlo)
  19. * ``AbstractEmailForm`` will use ``SHORT_DATETIME_FORMAT`` and ``SHORT_DATE_FORMAT`` Django settings to format date/time values in email (Haydn Greatnews)
  20. * ``AbstractEmailForm`` now has a separate method (``render_email``) to build up email content on submission emails. See :ref:`form_builder_render_email`. (Haydn Greatnews)
  21. * Add ``pre_page_move`` and ``post_page_move`` signals. (Andy Babic)
  22. * Add ability to sort search promotions on listing page (Chris Ranjana, LB (Ben Johnston))
  23. * Upgrade internal JS tooling; Node v10, Gulp v4 & Jest v23 (Jim Jazwiecki, Kim LaRocca, Thibaud Colas)
  24. * Add ``after_publish_page``, ``before_publish_page``, ``after_unpublish_page`` & ``before_unpublish_page`` hooks (Jonatas Baldin, Coen van der Kamp)
  25. * Add convenience ``page_url`` shortcut to improve how page URLs can be accessed from site settings in Django templates (Andy Babic)
  26. * Show more granular error messages from Pillow when uploading images (Rick van Hattem)
  27. * Add ordering to ``Site`` object, so that index page and ``Site`` switcher will be sorted consistently (Coen van der Kamp, Tim Leguijt)
  28. * Add Reddit to oEmbed provider list (Luke Hardwick)
  29. * Remove sticky footer on small devices, so that content is not blocked and more easily editable (Saeed Tahmasebi)
  30. * Add ability to replace the default Wagtail logo in the userbar, via ``branding_logo`` block (Meteor0id)
  31. * Add ``alt`` property to ``ImageRenditionField`` api representation (Liam Mullens)
  32. * Add ``purge_revisions`` management command to purge old page revisions (Jacob Topp-Mugglestone, Tom Dyson)
  33. * Render the Wagtail User Bar on non ``Page`` views (Caitlin White, Coen van der Kamp)
  34. * Add ability to define ``form_classname`` on ``ListBlock`` & ``StreamBlock`` (LB (Ben Johnston))
  35. * Add documentation about how to use ``Rustface`` for image feature detection (Neal Todd)
  36. * Improve performance of public/not_public queries in ``PageQuerySet`` (Timothy Bautista)
  37. * Add ``add_redirect`` static method to ``Redirect`` class for programmatic redirect creation (Brylie Christopher Oxley, Lacey Williams Henschel)
  38. * Add reference documentation for ``wagtail.contrib.redirects`` See :ref:`redirects`. (LB (Ben Johnston))
  39. * ``bulk_delete`` page permission is no longer required to move pages, even if those pages have children (Robert Rollins, LB (Ben Johnston))
  40. * Add ``after_edit_snippet``, ``after_create_snippet`` and ``after_delete_snippet`` hooks and documentation (Kalob Taulien)
  41. * Improve performance of empty search results by avoiding downloading the entire search index in these scenarios (Lars van de Kerkhof, Coen van der Kamp)
  42. * Replace ``gulp-sass`` with ``gulp-dart-sass`` to improve core development across different platforms (Thibaud Colas)
  43. * Add SVG icons to resolve accessibility and customisation issues and start using them in a subset of Wagtail's admin (Coen van der Kamp, Scott Cranfill, Thibaud Colas)
  44. * Remove markup around rich text rendering by default, provide a way to use old behaviour via ``wagtail.contrib.legacy.richtext``. See :ref:`legacy_richtext`. (Coen van der Kamp, Dan Braghis)
  45. * Add ``WAGTAIL_TIME_FORMAT`` setting (Jacob Topp-Mugglestone)
  46. * Apply title length normalisation to improve ranking on PostgreSQL search (Karl Hobley)
  47. * Add ability to import redirects from an uploaded file (CSV, TSV, XLS, and XLSX) (Martin Sandström)
  48. Bug fixes
  49. ~~~~~~~~~
  50. * Ensure link to add a new user works when no users are visible in the users list (LB (Ben Johnston))
  51. * ``AbstractEmailForm`` saved submission fields are now aligned with the email content fields, ``form.cleaned_data`` will be used instead of ``form.fields`` (Haydn Greatnews)
  52. * Removed ARIA ``role="table"`` from TableBlock output (Thibaud Colas)
  53. * Set Cache-Control header to prevent page preview responses from being cached (Tomas Walch)
  54. * Accept unicode characters in slugs on the "copy page" form (François Poulain)
  55. * Support IPv6 domain (Alex Gleason, Coen van der Kamp)
  56. * Remove top padding when ``FieldRowPanel`` is used inside a ``MultiFieldPanel`` (Jérôme Lebleu)
  57. * Add Wagtail User Bar back to page previews and ensure moderation actions are available (Coen van der Kamp)
  58. * Fix issue where queryset annotations were lost (e.g. ``.annotate_score()``) when using specific models in page query (Dan Bentley)
  59. * Prevent date/time picker from losing an hour on losing focus when 12-hour times are in use (Jacob Topp-Mugglestone)
  60. * Strip out HTML tags from ``RichTextField`` & ``RichTextBlock`` search index content (Timothy Bautista)
  61. * Avoid using null on string ``Site.site_name`` blank values to avoid different values for no name (Coen van der Kamp)
  62. * Fix deprecation warnings on Elasticsearch 7 (Yngve Høiseth)
  63. * Remove use of Node.forEach for IE 11 compatibility in admin menu items (Thibaud Colas)
  64. Upgrade considerations
  65. ======================
  66. Removed support for Python 3.5
  67. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  68. Python 3.5 is no longer supported as of this release; please upgrade to Python 3.6 or above before upgrading Wagtail.
  69. ``<div class="rich-text">`` wrappers removed from rich text
  70. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  71. In previous releases, rich text values were enclosed in a ``<div class="rich-text">`` element when rendered; this element has now been removed.
  72. To restore the old behaviour, see :ref:`legacy_richtext`.