Browse files

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

…e too soon in install.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent eb1357b commit 432070d0fbf20b800e667012fd220ae26e3f579f @jpellerin jpellerin committed Sep 14, 2006
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/core/
4 django/core/
@@ -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)
- 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):

0 comments on commit 432070d

Please sign in to comment.