def _with_inline(func, admin_site, metadata_class, inline_class):
def register(model_or_iterable, admin_class=None, **options):<EOL><INDENT>func(model_or_iterable, admin_class, **options)<EOL>_monkey_inline(model_or_iterable, admin_site._registry[model_or_iterable], metadata_class, inline_class, admin_site)<EOL><DEDENT>return register<EOL>
Decorator for register function that adds an appropriate inline.