- 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)
- 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 inadd.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! 🎉
- 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
- 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
- wagtailmedia/media/edit.html has the new
form_row
andmedia_stats
blocks - wagtailmedia/media/index.htm has the new
add_actions
block
- Update edit handler
AdminMediaChooser
API to be compatible with Wagtail 2.0 and above (#34, #40). Thanks to @pahacofome
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'),
# [...]
- 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).
- 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).
- 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.
- Compatibility with Wagtail 2.0 (@Rotund)
- Change log
- 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)
- Make compatible with Wagtail 1.6.3+ (thanks @nimasmi and @MechanisM)
- Make compatible with Wagtail 1.5+ (thanks @nimasmi and @MechanisM)
Initial release