from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _

from . import checks  # NOQA: F401


class WagtailAdminAppConfig(AppConfig):
    name = "wagtail.admin"
    label = "wagtailadmin"
    verbose_name = _("Wagtail admin")
    default_auto_field = "django.db.models.AutoField"

    def ready(self):
        from wagtail.admin.signal_handlers import register_signal_handlers

        register_signal_handlers()

        from wagtail.admin.telepath import widgets  # noqa: F401
