def all_migrations(applications=None):
 if (applications is None):
  applications = models.get_apps()
 for model_module in applications:
  app_path = '.'.join(model_module.__name__.split('.')[:(-1)])
  app = ask_for_it_by_name(app_path)
  try:
   (yield Migrations(app))
  except exceptions.NoMigrations:
   pass

def all_migrations ( applications = None ) : if ( applications is None ) : applications = models . get_apps ( ) for model_module in applications : app_path = '.' . join ( model_module . __name__ . split ( '.' ) [ : ( - 1 ) ] ) app = ask_for_it_by_name ( app_path ) try : ( yield Migrations ( app ) ) except exceptions . NoMigrations : pass
returns all migrations for all applications that are migrated .