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:01:09 -0700 |
| commit | f577b2db3cec683ad0c3720eae7419c8d19c72c2 (patch) | |
| tree | ce1059055822d3d1e296cfc6a82c870a5c1cb609 | |
| parent | aa0886e7ae1f372488210e4e51ee6901af8ec643 (diff) | |
[1.7.x] 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) |
