Ticket #26930: 26930-patch.diff

File 26930-patch.diff, 1.1 KB (added by lizlemon, 8 years ago)

fixes the issue

  • django/core/management/commands/makemigrations.py

    diff --git a/django/core/management/commands/makemigrations.py b/django/core/management/commands/makemigrations.py
    index b8c0548..77e8ce9 100644
    a b class Command(BaseCommand):  
    9595
    9696        # Raise an error if any migrations are applied before their dependencies.
    9797        for db in connections:
    98             loader.check_consistent_history(connections[db])
     98            if connections[db].is_usable():
     99                loader.check_consistent_history(connections[db])
    99100
    100101        # Before anything else, see if there's conflicting apps and drop out
    101102        # hard if there are any and they don't want to merge
  • django/db/backends/dummy/base.py

    diff --git a/django/db/backends/dummy/base.py b/django/db/backends/dummy/base.py
    index f45d913..aab92e3 100644
    a b class DatabaseWrapper(BaseDatabaseWrapper):  
    8383        self.validation = BaseDatabaseValidation(self)
    8484
    8585    def is_usable(self):
    86         return True
     86        return False
Back to Top