Commits

Anonymous committed 9b62558

[multi-db] Fixed bug in get_sql_create() where builder was looked up incorrectly for pending statements.

  • Participants
  • Parent commits 505fd08
  • Branches multiple-db-support

Comments (0)

Files changed (1)

File django/core/management.py

     if not_installed_models:
         alter_sql = []
         for model in not_installed_models:
-            builder = model._default_manager.db.builder.get_creation_module().builder
+            builder = model._default_manager.db.get_creation_module().builder
             
             for rel_class, f in pending[model]:
                 sql = builder._ref_sql(model, rel_class, f, style)