def models_preparing(app):
def wrapper(resource, parent):<EOL><INDENT>if isinstance(resource, DeclarativeMeta):<EOL><INDENT>resource = ListResource(resource)<EOL><DEDENT>if not getattr(resource, '<STR_LIT>', None):<EOL><INDENT>resource.__parent__ = parent<EOL><DEDENT>return resource<EOL><DEDENT>resources_preparing_factory(app, wrapper)<EOL>
Wrap all sqlalchemy model in settings.