diff --git a/django/db/migrations/state.py b/django/db/migrations/state.py index 34bd83deff8..69bfbb2ab26 100644 --- a/django/db/migrations/state.py +++ b/django/db/migrations/state.py @@ -100,7 +100,7 @@ class ProjectState(object): def from_apps(cls, apps): "Takes in an Apps and returns a ProjectState matching it" app_models = {} - for model in apps.get_models(): + for model in apps.get_models(include_swapped=True): model_state = ModelState.from_model(model) app_models[(model_state.app_label, model_state.name.lower())] = model_state return cls(app_models)