diff --git a/django/db/migrations/autodetector.py b/django/db/migrations/autodetector.py
index 6ed6edc..1805de0 100644
a
|
b
|
class MigrationAutodetector(object):
|
105 | 105 | self.new_model_keys = [] |
106 | 106 | for al, mn in sorted(self.to_state.models.keys()): |
107 | 107 | model = self.new_apps.get_model(al, mn) |
108 | | if not model._meta.proxy and model._meta.managed and ( |
109 | | al not in self.from_state.real_apps or |
110 | | (convert_apps and al in convert_apps) |
111 | | ): |
| 108 | if not model._meta.proxy and model._meta.managed: |
112 | 109 | self.new_model_keys.append((al, mn)) |
113 | 110 | |
114 | 111 | # Renames have to come first |