Releases: torchbox/wagtailmedia
Releases · torchbox/wagtailmedia
v0.5.0 - Django 3 support
This release make wagtailmedia compatible with Wagtail 2.9 and Django 3.0
Changelog
- Added interactive demo (#82). Thanks to @thenewguy
- Added setting
WAGTAILMEDIA_MEDIA_FORM_BASE
to simplify customization of the media form (#83). Thanks to @thenewguy - Fix Wagtail > 2.8 compatibility (reshuffled imports)
- Fix Django 3 compatibility issues (#88). Thanks to @lohmander
v0.4.0 - Back with more goodies
This release brings Wagtail 2.7 compatibility and some much needed maintenance ❤️
Changelog
- Added
construct_media_chooser_queryset
hook (#60). Thanks to @jeromelebleu - Added further template blocks (#79). Thanks to @thenewguy
- Added support for media renditions (#67). Thanks to @thenewguy
- Fixed Wagtail 2.7 compatibility (#63). Thanks to @Chris-May
New template blocks
- wagtailmedia/media/edit.html has the new
form_row
andmedia_stats
blocks - wagtailmedia/media/index.htm has the new
add_actions
block
Hooks
The addition of the construct_media_chooser_queryset
brings the wagtailmedia package one step closer to the core Wagtail documents/images behavious.
Called when rendering the media chooser view, to allow the media listing QuerySet to be customised. The callable passed into the hook will receive the current media QuerySet and the request object, and must return a Media QuerySet (either the original one, or a new one).
from wagtail.core import hooks
@hooks.register('construct_media_chooser_queryset')
def show_my_uploaded_media_only(media, request):
# Only show uploaded media
media = media.filter(uploaded_by_user=request.user)
return media
v0.3.1
[0.3.1] - 2019-05-22
Changed
- Update edit handler
AdminMediaChooser
API to be compatible with Wagtail 2.0 and above (#34, #40). Thanks to @pahacofome
Upgrade considerations
BaseMediaChooserPanel
is deprecated, and will be removed in a future release. Please use AdminMediaChooser
instead (#40):
- from wagtailmedia.edit_handlers import BaseMediaChooserPanel
+ from wagtailmedia.edit_handlers import MediaChooserPanel
# [...]
content_panels = Page.content_panels + [
# [...]
- BaseMediaChooserPanel('video_media'),
+ MediaChooserPanel('video_media'),
v0.3.0
[0.3.0] - 2019-05-08
Added
- Support Wagtail 2.4 & 2.5 (#43). Thanks to @DanSGraham, @evanwinter, @kaduuuken, @pahacofome, @kaedroho, @thibaudcolas for submitting various issues & PRs for this 🎉.
- In CI, unit tests now run against combinations of Python 3.5, 3.6, 3.7, Django 1.11, 2.0, 2.1, 2.2, Wagtail 2.2, 2.3, 2.4, 2.5. (#43, thanks to @kaedroho).
Changed
- Thanks to the Wagtail 2.2 chooser API upgrade, it should now be possible to use
wagtailmedia
with a Content Security Policy withoutunsafe-eval
(#43).
Removed
- Remove support for Wagtail 2.1, 2.0, and below. For compatibility with Wagtail 2.1 and 2.0, use the v0.2.0 release.
v0.2.0
v0.1.4
- Enable the optional
thumbnail
field for audio form. Useful for an album cover (@thenewguy) - Fix: video form no longer fails if a custom model do not have editable
width
andheight
fields. Useful if you automatically set these fields in your project (@thenewguy)