diff options
| author | Tim Graham <timograham@gmail.com> | 2014-03-25 12:07:37 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-03-25 12:07:37 -0400 |
| commit | d84beb3d9105300a94061dd94911a0c3cd9021d2 (patch) | |
| tree | 65c85761efa22801cb4c49e2082b5636429d18ba /django/db | |
| parent | bf69375c4d2eaec4f00c646b9e7e84a9397d1a20 (diff) | |
Revert "[1.7.x] Fixed #22331 -- Fixed migrations ProjectState to ignore unmanaged models."
This reverts commit bf69375c4d2eaec4f00c646b9e7e84a9397d1a20.
Diffstat (limited to 'django/db')
| -rw-r--r-- | django/db/migrations/state.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/django/db/migrations/state.py b/django/db/migrations/state.py index 01019ff980..ab2bd8e6d8 100644 --- a/django/db/migrations/state.py +++ b/django/db/migrations/state.py @@ -58,9 +58,8 @@ class ProjectState(object): "Takes in an Apps and returns a ProjectState matching it" app_models = {} for model in apps.get_models(): - if model._meta.managed: - model_state = ModelState.from_model(model) - app_models[(model_state.app_label, model_state.name.lower())] = model_state + model_state = ModelState.from_model(model) + app_models[(model_state.app_label, model_state.name.lower())] = model_state return cls(app_models) def __eq__(self, other): |
