Skip to content

Commit

Permalink
[multi-db] Fixed another typo in get_sql_create for pending references.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpellerin committed Nov 27, 2006
1 parent e789a8b commit 025be90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django/core/management.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ def get_sql_create(app):
builder = model._default_manager.db.get_creation_module().builder builder = model._default_manager.db.get_creation_module().builder


for rel_class, f in pending[model]: for rel_class, f in pending[model]:
sql = builder._ref_sql(model, rel_class, f, style) sql = builder.get_ref_sql(model, rel_class, f, style)
alter_sql.extend(['-- ', str(sql)]) alter_sql.append('-- '+ str(sql))
if alter_sql: if alter_sql:
final_output.append('-- The following references should be added ' final_output.append('-- The following references should be added '
'but depend on non-existent tables:') 'but depend on non-existent tables:')
Expand Down

0 comments on commit 025be90

Please sign in to comment.