From 025be905d9859bf03cb903bfd2477ae0570cc819 Mon Sep 17 00:00:00 2001 From: Jason Pellerin Date: Mon, 27 Nov 2006 17:17:08 +0000 Subject: [PATCH] [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 --- django/core/management.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/django/core/management.py b/django/core/management.py index 270e8f2ed1..db0222e251 100644 --- a/django/core/management.py +++ b/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:')