0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00
wagtail/docs/releases/2.17.md
Joshua Munn b8405e9ca8 Add unsaved fields to FormBuilder.formfields with clean name as key
fixes #6555,
Only the final unsaved FormField appears in the preview of a FormPage. As
FormBuilder adds fields to its formfields attribute using their
clean_name as the key, and FormField.clean_name isn't populated until
FormField.save is called, all unsaved fields are added to the
FormBuilder.formfields dict with the empty string as key. This solves
this by calling get_field_clean_name on the field before insertion
into formfields if clean_name hasn't been set yet.
2022-02-22 17:09:37 +10:00

1.5 KiB
Raw Blame History

Wagtail 2.17 release notes - IN DEVELOPMENT

.. contents::
    :local:
    :depth: 1

What's new

Page editor redesign

Here are other changes related to the redesign:

  • Switch the Wagtail branding font to a system font stack (Steven Steinwand)

Other features

  • Upgrade ESLint and Stylelint configurations to latest shared Wagtail configs (Thibaud Colas)
  • Major updates to frontend tooling; move Node tooling from Gulp to Webpack, upgrade to Node v16 and npm v8, eslint v8, stylelint v14 and others (Thibaud Colas)
  • Change comment headers date formatting to use browser APIs instead of requiring a library (LB (Ben Johnston))
  • Lint with flake8-comprehensions and flake8-assertive, including adding a pre-commit hook for these (Mads Jensen, Dan Braghis)
  • Add black configuration and reformat code using it (Dan Braghis)
  • Remove UI code for legacy browser support: polyfills, IE11 workarounds, Modernizr (Thibaud Colas)
  • Remove redirect auto-creation recipe from documentation as this feature is now supported in Wagtail core (Andy Babic)

Bug fixes

  • Update django-treebeard dependency to 4.5.1 or above (Serafeim Papastefanos)
  • When using simple_translations ensure that the user is redirected to the page edit view when submitting for a single locale (Mitchel Cabuloy)
  • When previewing unsaved changes to Form pages, ensure that all added fields are correctly shown in the preview (Joshua Munn)

Upgrade considerations