Skip to content

Commit

Permalink
Fix inheritance order for actual views
Browse files Browse the repository at this point in the history
  • Loading branch information
ababic committed Jul 29, 2024
1 parent 9461763 commit 0d99e1e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/wagtail_bynder/views/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down
2 changes: 1 addition & 1 deletion src/wagtail_bynder/views/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down
2 changes: 1 addition & 1 deletion src/wagtail_bynder/views/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0d99e1e

Please sign in to comment.