Skip to content

Commit

Permalink
fix: make WorkflowAdmin inherit from SortableAdminBase
Browse files Browse the repository at this point in the history
  • Loading branch information
joshyu committed Mar 6, 2024
1 parent bd85f4d commit 41ecb14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions djangocms_moderation/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from cms.toolbar.utils import get_object_preview_url
from cms.utils.helpers import is_editable_model

from adminsortable2.admin import SortableInlineAdminMixin
from adminsortable2.admin import SortableInlineAdminMixin, SortableAdminBase
from treebeard.admin import TreeAdmin

from . import constants, signals
Expand Down Expand Up @@ -1016,7 +1016,7 @@ def get_extra(self, request, obj=None, **kwargs):


@admin.register(Workflow)
class WorkflowAdmin(admin.ModelAdmin):
class WorkflowAdmin(SortableAdminBase, admin.ModelAdmin):
inlines = [WorkflowStepInline]
list_display = ["name", "is_default"]
fields = [
Expand Down

0 comments on commit 41ecb14

Please sign in to comment.