Search code examples
djangowagtail

what has happened to the add view in Wagtail 6.x


Upgrading from Wagtail 5.2.6 to Wagtail 6.3 LTS, I noticed that the methods add and edit that were here are no longer there:

wagtail.images.views.images

What happened to them? Were they moved or replaced?


Solution

  • These views were refactored into class-based views CreateView and EditView in Wagtail 6.3 as part of the Universal design feature:

    Documents and Images views now use universal listings styles

    This change was made in PR #12275, and was done to allow greater code sharing between the image views and other areas of Wagtail, making the UI more consistent.

    Generally the release notes won't include full details of all internal code changes - if they did, they would be effectively the same as reading through the source code.