old_contents: from __future__ import absolute_import, unicode_literals
  
  from wagtail.admin.edit_handlers import BaseChooserPanel
  
  from wagtailmedia.widgets import AdminMediaChooser
  
  
  class BaseMediaChooserPanel(BaseChooserPanel):
      """
      DEPRECATED – This undocumented API will be removed in a future release. Please use MediaChooserPanel instead.
      Note: When removing this deprecated code, just remove the whole class.
      """
  
      object_type_name = "media"
  
      def widget_overrides(self):
          return {self.field_name: AdminMediaChooser}
  
  
  class MediaChooserPanel(BaseChooserPanel):
      object_type_name = "media"
  
      def widget_overrides(self):
          return {self.field_name: AdminMediaChooser}
  
new_contents: from __future__ import absolute_import, unicode_literals
  
  from wagtail.admin.edit_handlers import BaseChooserPanel
  
  from wagtailmedia.widgets import AdminMediaChooser
  
  
  class MediaChooserPanel(BaseChooserPanel):
      object_type_name = "media"
  
      def widget_overrides(self):
          return {self.field_name: AdminMediaChooser}
  
subject: Remove deprecated BaseMediaChooserPanel (#120)