def _get_models_to_patch():
 return list(itertools.chain(*[app_config.get_models(include_auto_created=False) for app_config in apps.get_app_configs() if ((app_config.label == 'osf') or app_config.label.startswith('addons_'))]))

def _get_models_to_patch ( ) : return list ( itertools . chain ( * [ app_config . get_models ( include_auto_created = False ) for app_config in apps . get_app_configs ( ) if ( ( app_config . label == 'osf' ) or app_config . label . startswith ( 'addons_' ) ) ] ) )
return all models from osf and addons .