Delay an import which causes not ready complaints if handled too early.
- Legacy-Id: 12580
This commit is contained in:
parent
1620a14c86
commit
7e3088993e
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue