def _monkey_inline(model, admin_class_instance, metadata_class, inline_class, admin_site):
if model in metadata_class._meta.seo_models:<EOL><INDENT>admin_class_instance.__dict__['<STR_LIT>'] = admin_class_instance.inlines + [inline_class]<EOL>inline_instance = inline_class(admin_class_instance.model, admin_site)<EOL>admin_class_instance.inline_instances.append(inline_instance)<EOL><DEDENT>
Monkey patch the inline onto the given admin_class instance.