diff --git a/src/wagtail_bynder/views/document.py b/src/wagtail_bynder/views/document.py index 0cadda2..2b078e6 100644 --- a/src/wagtail_bynder/views/document.py +++ b/src/wagtail_bynder/views/document.py @@ -56,7 +56,7 @@ def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) -class DocumentChosenView(chooser_views.DocumentChosenView, BynderAssetCopyMixin): +class DocumentChosenView(BynderAssetCopyMixin, chooser_views.DocumentChosenView): model = get_document_model() def get(self, request: "HttpRequest", pk: str) -> "JsonResponse": diff --git a/src/wagtail_bynder/views/image.py b/src/wagtail_bynder/views/image.py index f2d6054..9ac3dd4 100644 --- a/src/wagtail_bynder/views/image.py +++ b/src/wagtail_bynder/views/image.py @@ -54,7 +54,7 @@ def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) -class ImageChosenView(chooser_views.ImageChosenView, BynderAssetCopyMixin): +class ImageChosenView(BynderAssetCopyMixin, chooser_views.ImageChosenView): model = get_image_model() def get(self, request: "HttpRequest", pk: str) -> "JsonResponse": diff --git a/src/wagtail_bynder/views/video.py b/src/wagtail_bynder/views/video.py index 86b636c..55e5746 100644 --- a/src/wagtail_bynder/views/video.py +++ b/src/wagtail_bynder/views/video.py @@ -31,7 +31,7 @@ def page_subtitle(self): return self.model._meta.verbose_name -class VideoChosenView(SnippetChosenView, BynderAssetCopyMixin): +class VideoChosenView(BynderAssetCopyMixin, SnippetChosenView): def get(self, request: "HttpRequest", pk: str) -> "JsonResponse": try: obj = self.model.objects.get(bynder_id=pk)