1
0
mirror of https://github.com/django/django.git synced 2025-07-04 09:49:12 +00:00

[multi-db] Fixed bug in get_sql_create() where builder was looked up incorrectly for pending statements.

git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@4122 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jason Pellerin 2006-11-27 16:50:00 +00:00
parent 0c128ffb24
commit e789a8b0f7

View File

@ -131,7 +131,7 @@ def get_sql_create(app):
if not_installed_models:
alter_sql = []
for model in not_installed_models:
builder = model._default_manager.db.builder.get_creation_module().builder
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)