torchbox / wagtailmedia

A Wagtail module for managing video and audio files within the admin
https://pypi.org/project/wagtailmedia/
BSD 3-Clause "New" or "Revised" License
224 stars 70 forks source link

`classnames` Deprecation Warning #224

Closed jamesbiggs closed 8 months ago

jamesbiggs commented 8 months ago

Issue Summary

When upgrading to wagtail 5.2, I get a RemovedInWagtail60Warning for the classnames attribute, telling me it'll be removed in wagtail 6.0, which comes from:

https://github.com/torchbox/wagtailmedia/blob/0573ddc9050e4adfb415cccdb725f19c1f63c3ea/src/wagtailmedia/wagtail_hooks.py#L73-L81

Steps to Reproduce

  1. Upgrade to wagtail 5.2
  2. See that you get a deprecation warning in the logs

Technical details

zerolab commented 8 months ago

fixed via accd29a