diff options
| author | Andrew Godwin <andrew@aeracode.org> | 2014-06-22 13:00:49 -0700 |
|---|---|---|
| committer | Andrew Godwin <andrew@aeracode.org> | 2014-06-22 13:00:49 -0700 |
| commit | 8b878c7a6429be499edca5cb6897c226f5bdcba2 (patch) | |
| tree | 1f497b563090afb8303e78672c1af257f44193e1 | |
| parent | b30d32ff24096e4191d661e2aaa734c92795237f (diff) | |
Include swapped apps in autodetector state
| -rw-r--r-- | django/db/migrations/state.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/migrations/state.py b/django/db/migrations/state.py index 34bd83deff..69bfbb2ab2 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) |
