Skip to content

Releases: torchbox/wagtailmedia

v0.7.0 – Optional durations, Chinese translations

06 Nov 15:34
Compare
Choose a tag to compare

[0.7.0] - 2020-11-06

  • Made the duration field optional, and altered it from PositiveIntegerField to FloatField. If you rely on integer output of duration in templates use {{ media.duration|floatformat:"0" }} instead of {{ media.duration }} to restore the previous behavior (#100, #106, #108, #110). Thanks to @thenewguy!
  • Fixed deprecation warnings with Django 3.0 (#94, #109).
  • Excluded tests folder from published package’s sdist (#107)).
  • Added Chinese (China) translations (#114). Thanks to @Dannykey and @BrianXu20
  • Removed declared support for Python 3.5, Wagtail 2.8, Wagtail 2.9 (#116)
  • Added declared support for Python 3.9, Wagtail 2.11, Django 3.1 (#116)

v0.6.0 – Chooser uploads!

14 Aug 14:43
8dce6b6
Compare
Choose a tag to compare

[0.6.0] - 2020-08-14

  • Added filtering of media files by user permission in chooser panel (#25). Thanks to @snj
  • Added French translations (#61). Thanks to @jeromelebleu.
  • Add {% block action %} template block to allow overriding of form action in add.html template (#102). Thanks to @thenewguy
  • Fix expected NotImplementedError in Wagtail 1.6+ (#104). Thanks to @chosak and @Scotchester.
  • Add support for uploading media files via the media chooser, just like images and documents (#22, #97). Thanks to @teixas! 🎉

upload

v0.5.0 - Django 3 support

20 Feb 10:40
Compare
Choose a tag to compare

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

06 Dec 11:18
Compare
Choose a tag to compare

This release brings Wagtail 2.7 compatibility and some much needed maintenance ❤️

Changelog

New template blocks

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

22 May 14:12
4cfecb7
Compare
Choose a tag to compare

[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

22 May 13:29
Compare
Choose a tag to compare

[0.3.0] - 2019-05-08

Added

Changed

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

24 May 09:47
9a4112d
Compare
Choose a tag to compare
  • Make compatible with Wagtail 2.0 (thanks, @Rotund)
  • Add usage counter on edit and deletion pages (thanks, @jeromelebleu)
  • Add change log

v0.1.4

16 Apr 08:32
Compare
Choose a tag to compare
  • 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 and height fields. Useful if you automatically set these fields in your project (@thenewguy)

v0.1.3

15 Apr 13:20
Compare
Choose a tag to compare

v0.1.2

15 Apr 13:17
Compare
Choose a tag to compare