'Return a list of information about all DB sequences for all models in
all apps.'

def sequence_list(self):

    from django.apps import apps
    from django.db import models, router
    sequence_list = []
    for app_config in apps.get_app_configs():
        for model in router.get_migratable_models(app_config, self.connection.alias):
            if (not model._meta.managed):
                continue
            if model._meta.swapped:
                continue
            for f in model._meta.local_fields:
                if isinstance(f, models.AutoField):
                    sequence_list.append({'table': model._meta.db_table, 'column': f.column})
                    break
            for f in model._meta.local_many_to_many:
                if (f.remote_field.through is None):
                    sequence_list.append({'table': f.m2m_db_table(), 'column': None})
    return sequence_list
