Commits

Anonymous committed 91fc9ac

[multi-db] Fixed another typo in get_sql_create for pending references.

  • Participants
  • Parent commits 9b62558
  • Branches multiple-db-support

Comments (0)

Files changed (1)

File django/core/management.py

             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)
-                alter_sql.extend(['-- ', str(sql)])
+                sql = builder.get_ref_sql(model, rel_class, f, style)
+                alter_sql.append('-- '+ str(sql))
         if alter_sql:
             final_output.append('-- The following references should be added '
                                 'but depend on non-existent tables:')