Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

utils.importlib is deprecated

  • Loading branch information...
commit 9f736294205486443f047e93f8ca53b5b00ac1d3 1 parent 6796276
@andrewgodwin andrewgodwin authored
View
1  django/core/management/commands/flush.py
@@ -8,7 +8,6 @@
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
View
2  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.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
View
2  django/db/migrations/loader.py
@@ -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
View
2  django/db/migrations/writer.py
@@ -2,8 +2,8 @@
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
Please sign in to comment.
Something went wrong with that request. Please try again.