Ticket #22824: autodetector.diff

File autodetector.diff, 762 bytes (added by Ben Davis, 10 years ago)
  • django/db/migrations/autodetector.py

    diff --git a/django/db/migrations/autodetector.py b/django/db/migrations/autodetector.py
    index 6ed6edc..1805de0 100644
    a b class MigrationAutodetector(object):  
    105105        self.new_model_keys = []
    106106        for al, mn in sorted(self.to_state.models.keys()):
    107107            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:
    112109                self.new_model_keys.append((al, mn))
    113110
    114111        # Renames have to come first
Back to Top