utils.importlib is deprecated
This commit is contained in:
parent
679627660f
commit
9f73629420
|
@ -8,7 +8,6 @@ from django.core.management import call_command
|
|||
from django.core.management.base import NoArgsCommand, CommandError
|
||||
from django.core.management.color import no_style
|
||||
from django.core.management.sql import sql_flush, emit_post_migrate_signal
|
||||
from django.utils.importlib import import_module
|
||||
from django.utils.six.moves import input
|
||||
from django.utils import six
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
from optparse import make_option
|
||||
from collections import OrderedDict
|
||||
from importlib import import_module
|
||||
import itertools
|
||||
import traceback
|
||||
|
||||
|
@ -11,7 +12,6 @@ from django.core.management.sql import custom_sql_for_model, emit_post_migrate_s
|
|||
from django.db import connections, router, transaction, models, DEFAULT_DB_ALIAS
|
||||
from django.db.migrations.executor import MigrationExecutor
|
||||
from django.db.migrations.loader import AmbiguityError
|
||||
from django.utils.importlib import import_module
|
||||
from django.utils.module_loading import module_has_submodule
|
||||
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import os
|
||||
from django.utils.importlib import import_module
|
||||
from importlib import import_module
|
||||
from django.utils.functional import cached_property
|
||||
from django.db.models.loading import cache
|
||||
from django.db.migrations.recorder import MigrationRecorder
|
||||
|
|
|
@ -2,8 +2,8 @@ from __future__ import unicode_literals
|
|||
import datetime
|
||||
import types
|
||||
import os
|
||||
from importlib import import_module
|
||||
from django.utils import six
|
||||
from django.utils.importlib import import_module
|
||||
from django.db import models
|
||||
from django.db.models.loading import cache
|
||||
from django.db.migrations.loader import MigrationLoader
|
||||
|
|
Loading…
Reference in New Issue