summaryrefslogtreecommitdiff
path: root/django/core
diff options
context:
space:
mode:
authorAndrew Godwin <andrew@aeracode.org>2013-08-09 17:36:16 +0100
committerAndrew Godwin <andrew@aeracode.org>2013-08-09 17:36:16 +0100
commit9f736294205486443f047e93f8ca53b5b00ac1d3 (patch)
tree06c23cb27506f1063e59b449c8744bcf75cae815 /django/core
parent679627660fef3c7a9f7be743a168930e4a0e58ae (diff)
utils.importlib is deprecated
Diffstat (limited to 'django/core')
-rw-r--r--django/core/management/commands/flush.py1
-rw-r--r--django/core/management/commands/migrate.py2
2 files changed, 1 insertions, 2 deletions
diff --git a/django/core/management/commands/flush.py b/django/core/management/commands/flush.py
index 5e951f97b4..ea0952cb53 100644
--- a/django/core/management/commands/flush.py
+++ b/django/core/management/commands/flush.py
@@ -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
diff --git a/django/core/management/commands/migrate.py b/django/core/management/commands/migrate.py
index 085b6b2cc7..dbec389bed 100644
--- a/django/core/management/commands/migrate.py
+++ b/django/core/management/commands/migrate.py
@@ -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