Delay an import which causes not ready complaints if handled too early.

- Legacy-Id: 12580
This commit is contained in:
Henrik Levkowetz 2016-12-19 13:52:00 +00:00
parent 1620a14c86
commit 7e3088993e

View file

@ -17,13 +17,13 @@ debug.debug = True
## To be removed after upgrade to Django 1.8 ##
from django.db.migrations.loader import MIGRATIONS_MODULE_NAME
class DisableMigrations(object):
def __contains__(self, item):
return True
def __getitem__(self, item):
from django.db.migrations.loader import MIGRATIONS_MODULE_NAME
# 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