Skip to content
Browse files


  • Loading branch information...
1 parent b61b634 commit 841b7af8120e854f3aa37b8918f461efcbbef3d6 @andrewgodwin andrewgodwin committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/core/management/commands/
4 django/core/management/commands/
@@ -4,7 +4,7 @@
from import BaseCommand
from django.core.exceptions import ImproperlyConfigured
-from django.db import connections
+from django.db import connections, DEFAULT_DB_ALIAS
from django.db.migrations.loader import MigrationLoader
from django.db.migrations.autodetector import MigrationAutodetector, InteractiveMigrationQuestioner
from django.db.migrations.state import ProjectState
@@ -41,7 +41,7 @@ def handle(self, *app_labels, **options):
# Load the current graph state. Takes a connection, but it's not used
# (makemigrations doesn't look at the database state).
- loader = MigrationLoader(connections["default"])
+ loader = MigrationLoader(connections[DEFAULT_DB_ALIAS])
# Detect changes
autodetector = MigrationAutodetector(

0 comments on commit 841b7af

Please sign in to comment.
Something went wrong with that request. Please try again.