def modeladmin_register(modeladmin_class):
 instance = modeladmin_class()
 instance.register_with_wagtail()

def modeladmin_register ( modeladmin_class ) : instance = modeladmin_class ( ) instance . register_with_wagtail ( )
method for registering modeladmin or modeladmingroup classes with wagtail .