2.4.rst 4.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. =========================
  2. Wagtail 2.4 release notes
  3. =========================
  4. .. contents::
  5. :local:
  6. :depth: 1
  7. What's new
  8. ==========
  9. New "Welcome to your Wagtail site" Starter Page
  10. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  11. When using the ``wagtail start`` command to make a new site, users will now be greeted with a proper starter page. Thanks to Timothy Allen and Scott Cranfill for pulling this off!
  12. .. figure:: ../_static/images/tutorial/tutorial_1.png
  13. :alt: Wagtail welcome message
  14. Other features
  15. ~~~~~~~~~~~~~~
  16. * Added support for Python 3.7 (Matt Westcott)
  17. * Added ``max_count`` option on page models to limit the number of pages of a particular type that can be created (Dan Braghis)
  18. * Document and image choosers now show the document / image's collection (Alejandro Garza, Janneke Janssen)
  19. * New ``image_url`` template tag allows to generate dynamic image URLs, so image renditions are being created outside the main request which improves performance. Requires extra configuration, see :doc:`/advanced_topics/images/image_serve_view` (Yannick Chabbert, Dan Braghis).
  20. * Added ability to run individual tests through tox (Benjamin Bach)
  21. * Collection listings are now ordered by name (Seb Brown)
  22. * Added ``file_hash`` field to documents (Karl Hobley, Dan Braghis)
  23. * Added last login to the user overview (Noah B Johnson)
  24. * Changed design of image editing page (Janneke Janssen, Ben Enright)
  25. * Added Slovak character map for JavaScript slug generation (Andy Chosak)
  26. * Make documentation links on welcome page work for prereleases (Matt Westcott)
  27. * Allow overridden ``copy()`` methods in ``Page`` subclasses to be called from the page copy view (Robert Rollins)
  28. * Users without a preferred language set on their profile now use language selected by Django's ``LocaleMiddleware`` (Benjamin Bach)
  29. * Added hooks to customise the actions menu on the page create/edit views (Matt Westcott)
  30. * Cleanup: Use ``functools.partial()`` instead of ``django.utils.functional.curry()`` (Sergey Fedoseev)
  31. * Added ``before_move_page`` and ``after_move_page`` hooks (Maylon Pedroso)
  32. * Bulk deletion button for snippets is now hidden until items are selected (Karl Hobley)
  33. Bug fixes
  34. ~~~~~~~~~
  35. * Query objects returned from ``PageQuerySet.type_q`` can now be merged with ``|`` (Brady Moe)
  36. * Add ``rel="noopener noreferrer"`` to target blank links (Anselm Bradford)
  37. * Additional fields on custom document models now show on the multiple document upload view (Robert Rollins, Sergey Fedoseev)
  38. * Help text does not overflow when using a combination of BooleanField and FieldPanel in page model (Dzianis Sheka)
  39. * Document chooser now displays more useful help message when there are no documents in Wagtail document library (gmmoraes, Stas Rudakou)
  40. * Allow custom logos of any height in the admin menu (Meteor0id)
  41. * Allow nav menu to take up all available space instead of scrolling (Meteor0id)
  42. * Users without the edit permission no longer see "Edit" links in list of pages waiting for moderation (Justin Focus, Fedor Selitsky)
  43. * Redirects now return 404 when destination is unspecified or a page with no site (Hillary Jeffrey)
  44. * Refactor all breakpoint definitions, removing style overlaps (Janneke Janssen)
  45. * Updated draftjs_exporter to 2.1.5 to fix bug in handling adjacent entities (Thibaud Colas)
  46. * Page titles consisting only of stopwords now generate a non-empty default slug (Andy Chosak, Janneke Janssen)
  47. * Sitemap generator now allows passing a sitemap instance in the URL configuration (Mitchel Cabuloy, Dan Braghis)
  48. Upgrade considerations
  49. ======================
  50. Removed support for Django 1.11
  51. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  52. Django 1.11 is no longer supported in this release; please upgrade your project to Django 2.0 or 2.1 before upgrading to Wagtail 2.4.
  53. Custom image model migrations created on Wagtail <1.8 may fail
  54. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  55. Projects with a custom image model (see :ref:`custom_image_model`) created on Wagtail 1.7 or earlier are likely to have one or more migrations that refer to the (now-deleted) ``wagtailimages.Filter`` model. In Wagtail 2.4, the migrations that defined this model have been squashed, which may result in the error ``ValueError: Related model 'wagtailimages.Filter' cannot be resolved`` when bringing up a new instance of the database. To rectify this, check your project's migrations for ``ForeignKey`` references to ``wagtailimages.Filter``, and change them to ``IntegerField`` definitions. For example, the line:
  56. .. code-block:: python
  57. ('filter', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='+', to='wagtailimages.Filter')),
  58. should become:
  59. .. code-block:: python
  60. ('filter', models.IntegerField(blank=True, null=True)),