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:
parent
3d35c4f3a3
commit
09c08a99a1
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue