def auto_register_inlines(admin_site, metadata_class):
inline_class = get_inline(metadata_class)<EOL>for model, admin_class_instance in admin_site._registry.items():<EOL><INDENT>_monkey_inline(model, admin_class_instance, metadata_class, inline_class, admin_site)<EOL><DEDENT>admin_site.register = _with_inline(admin_site.register, admin_site, metadata_class, inline_class)<EOL>
This is a questionable function that automatically adds our metadata
        inline to all relevant models in the site.