summaryrefslogtreecommitdiff
path: root/django/db/migrations/executor.py
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2014-11-05 10:43:31 +0100
committerClaude Paroz <claude@2xlibre.net>2015-01-02 15:19:36 +0100
commita159b1facd222c20dde12f1e0117643af528d511 (patch)
tree64fadd6c79714f41bbdd5efb0a5f3d2331c88ccb /django/db/migrations/executor.py
parent4ee06ec3fc8e94d164afbd2f9c880c60c658a9ac (diff)
downloaddjango-a159b1facd222c20dde12f1e0117643af528d511.tar.gz
Replaced migration state render() by apps cached property
Refs #23745.
Diffstat (limited to 'django/db/migrations/executor.py')
-rw-r--r--django/db/migrations/executor.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/migrations/executor.py b/django/db/migrations/executor.py
index f5811bb795..4a73546ba8 100644
--- a/django/db/migrations/executor.py
+++ b/django/db/migrations/executor.py
@@ -137,7 +137,7 @@ class MigrationExecutor(object):
on initial migrations (as it only looks for CreateModel).
"""
project_state = self.loader.project_state((migration.app_label, migration.name), at_end=True)
- apps = project_state.render()
+ apps = project_state.apps
found_create_migration = False
# Bail if the migration isn't the first one in its app
if [name for app, name in migration.dependencies if app == migration.app_label]: