<filename>wagtail_localize/test/wagtail_hooks.py
from wagtail.contrib.modeladmin.options import (
    ModelAdmin,
    ModelAdminGroup,
    modeladmin_register,
)

from wagtail_localize.modeladmin.options import TranslatableModelAdmin

from .models import NonTranslatableModel, TestModel, TestPage


class TestPageAdmin(TranslatableModelAdmin):
    model = TestPage


class TestModelAdmin(TranslatableModelAdmin):
    model = TestModel
    inspect_view_enabled = True


class NonTranslatableModelAdmin(ModelAdmin):
    model = NonTranslatableModel


@modeladmin_register
class ModelAdminAdmin(ModelAdminGroup):
    items = (TestPageAdmin, TestModelAdmin, NonTranslatableModelAdmin)
    menu_label = "Model Admin"

<filename>wagtail_localize/test/wagtail_hooks.py
from wagtail.contrib.modeladmin.options import (
    ModelAdmin,
    ModelAdminGroup,
    modeladmin_register,
)

from wagtail_localize.modeladmin.options import TranslatableModelAdmin

from .models import NonTranslatableModel, TestModel, TestPage


class TestPageAdmin(TranslatableModelAdmin):
    model = TestPage


class TestModelAdmin(TranslatableModelAdmin):
    model = TestModel
    inspect_view_enabled = True


class NonTranslatableModelAdmin(ModelAdmin):
    model = NonTranslatableModel


@modeladmin_register
class ModelAdminAdmin(ModelAdminGroup):
    items = (TestPageAdmin, TestModelAdmin, NonTranslatableModelAdmin)
    menu_label = "Model Admin"
