Skip to content

v0.12 - Better comparison and API

Compare
Choose a tag to compare
@zerolab zerolab released this 01 Nov 10:10
· 65 commits to main since this release
08e06e6

This release adds an API viewset and serializer for media items.

API

To expose media items in the API, you can follow the Wagtail documentation guide for API configuration with wagtailmedia specifics:

# api.py
from wagtail.api.v2.router import WagtailAPIRouter
from wagtailmedia.api.views import MediaAPIViewSet


# Register the router
api_router = WagtailAPIRouter("wagtailapi")
# add any other enpoints you need, plus the wagtailmedia one

Comparison

Media field (that is, ForeignKey to media) and media chooser blocks are rendered in the revision comparison

Screenshot 2022-10-25 at 18 54 21

What's Changed

New Contributors

Full Changelog: v0.11.1...v0.12.0