def _get_sequence_list():
 from django.db import models
 apps = models.get_apps()
 sequence_list = []
 for app in apps:
  for model in models.get_models(app):
   for f in model._meta.fields:
    if isinstance(f, models.AutoField):
     sequence_list.append({'table': model._meta.db_table, 'column': f.column})
     break
   for f in model._meta.many_to_many:
    sequence_list.append({'table': f.m2m_db_table(), 'column': None})
 return sequence_list

def _get_sequence_list ( ) : from django . db import models apps = models . get_apps ( ) sequence_list = [ ] for app in apps : for model in models . get_models ( app ) : for f in model . _meta . fields : if isinstance ( f , models . AutoField ) : sequence_list . append ( { 'table' : model . _meta . db_table , 'column' : f . column } ) break for f in model . _meta . many_to_many : sequence_list . append ( { 'table' : f . m2m_db_table ( ) , 'column' : None } ) return sequence_list
returns a list of information about all db sequences for all models in all apps .