SortableHiddenMixin AttributeError: модуль 'nested_admin' не имеет атрибута 'SortableHiddenMixin'

Я хочу использовать drag and drop для сортировки элементов в списке в django. admin использует nested_admin 3.2.4. Я видел эту проблему на github LINK НО ЭТО НЕ РАБОТАЕТ <<<<3><3><>>.

    return ModuleType.__getattribute__(self, name)
AttributeError: module 'nested_admin' has no attribute 'SortableHiddenMixin'

class ReportSectionFieldInline(nested_admin.SortableHiddenMixin,
                               nested_admin.NestedTabularInline):
    model = ReportSectionField
    extra = 0
    classes = ['collapse']


class ReportSectionInline(nested_admin.NestedTabularInline):
    model = ReportSection
    inlines = [ReportSectionFieldInline]
    extra = 0
    classes = ['secciones-informe']

    class Media:
        css = {
            "all": ("admin/css/reportsection.css",)
        }


class ReportAdmin(nested_admin.NestedModelAdmin):
    list_display = ('id', 'description', 'type_report', 'modulo', 'active',)
    search_fields = ('description', 'type_report',)
    list_filter = ('type_report', 'active',)

    inlines = [ReportSectionInline]


Вернуться на верх