'Return an iterable of models.
By default, the following models aren\'t included:
- auto-created models for many-to-many relations without
an explicit intermediate table,
- models that have been swapped out.
Set the corresponding keyword argument to True to include such models.
Keyword arguments aren\'t documented; they\'re a private API.'

def get_models(self, include_auto_created=False, include_swapped=False):

    self.apps.check_models_ready()
    for model in self.models.values():
        if (model._meta.auto_created and (not include_auto_created)):
            continue
        if (model._meta.swapped and (not include_swapped)):
            continue
        (yield model)
