def haystack_load_apps():
 return [i.label for i in apps.get_app_configs() if (i.models_module is not None)]

def haystack_load_apps ( ) : return [ i . label for i in apps . get_app_configs ( ) if ( i . models_module is not None ) ]
return a list of app labels for all installed applications which have models .