#NEWLINE# def all_migrations( applications = None ) : #NEWLINE# #INDENT# '\n    Returns all Migrations for all `applications` that are migrated.\n    ' #NEWLINE# if ( applications is None ) : #NEWLINE# #INDENT# applications = models . get_apps ( ) #NEWLINE# #UNINDENT# for model_module in applications : #NEWLINE# #INDENT# app_path = '.' . join ( model_module . __name__ . split ( '.' ) [ : ( - 1 ) ] ) #NEWLINE# app = ask_for_it_by_name ( app_path ) #NEWLINE# try : #NEWLINE# #INDENT# ( yield Migrations ( app ) ) #NEWLINE# #UNINDENT# except exceptions . NoMigrations : #NEWLINE# #INDENT# pass