mirror of
https://github.com/django/django.git
synced 2025-07-04 17:59:13 +00:00
[multi-db] Fixed another typo in get_sql_create for pending references.
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@4123 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
e789a8b0f7
commit
025be905d9
@ -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:')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user