def wagtailmodeladmin_register(wagtailmodeladmin_class):
    """
    Alternative one-line method for registering ModelAdmin or ModelAdminGroup
    classes with Wagtail.
    """
    instance = wagtailmodeladmin_class()
    instance.register_with_wagtail()
