Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[multi-db] Fixed scoping bug that caused pending statements to execut…

…e too soon in install.

git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3757 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 432070d0fbf20b800e667012fd220ae26e3f579f 1 parent eb1357b
@jpellerin jpellerin authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/core/management.py
View
4 django/core/management.py
@@ -408,8 +408,8 @@ def _install(app, commit=True, initial_data=True):
if not model in models_installed:
new_pending = manager.install(initial_data=initial_data)
created_models.append(model)
- for model, statements in new_pending.items():
- pending.setdefault(model, []).extend(statements)
+ for dep_model, statements in new_pending.items():
+ pending.setdefault(dep_model, []).extend(statements)
# Execute any pending statements that were waiting for this model
if model in pending:
for statement in pending.pop(model):
Please sign in to comment.
Something went wrong with that request. Please try again.