More correct implementation of the workaround to skip migrations during test, which also points at the code that makes this work at the moment.

- Legacy-Id: 9246
This commit is contained in:
Henrik Levkowetz 2015-03-19 14:15:34 +00:00
parent 3d35c4f3a3
commit 09c08a99a1

View file

@ -19,8 +19,13 @@ class DisableMigrations(object):
return True
def __getitem__(self, item):
return None
# The string below is significant. It has to include the value of
# django.db.migrations.loader.MIGRATIONS_MODULE_NAME. Used by django
# 1.7 code in django.db.migrations.loader.MigrationLoader to
# determine whether or not to run migrations for a given module
from django.db.migrations.loader import MIGRATIONS_MODULE_NAME
return "no " + MIGRATIONS_MODULE_NAME
MIGRATION_MODULES = DisableMigrations()
DATABASES = {