v0.12 - Better comparison and API
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
What's Changed
- Update UI for Wagtail 4 by @thibaudcolas in #176
- Russian translation by @vl-tk in #177
- Update various GitHub action versions by @zerolab in #182
- Fix Wagtail 4.1 compatibility (usage counts) by @zerolab in #181
- Add API viewset and serializer by @zerolab and @hallpower in #185
- Add field and block comparison by @zerolab in #184
- Test against Python 3.11 by @zerolab in #187
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #186
New Contributors
- @vl-tk made their first contribution in #177
- @hallpower made their first contribution in #185
Full Changelog: v0.11.1...v0.12.0