Permalink
Browse files

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

  • Loading branch information...
1 parent e789a8b commit 025be905d9859bf03cb903bfd2477ae0570cc819 @jpellerin jpellerin committed Nov 27, 2006
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/core/management.py
@@ -134,8 +134,8 @@ def get_sql_create(app):
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:')

0 comments on commit 025be90

Please sign in to comment.