mirror of
https://github.com/django/django.git
synced 2025-07-05 10:19:20 +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:
parent
0c128ffb24
commit
e789a8b0f7
@ -131,7 +131,7 @@ def get_sql_create(app):
|
|||||||
if not_installed_models:
|
if not_installed_models:
|
||||||
alter_sql = []
|
alter_sql = []
|
||||||
for model in not_installed_models:
|
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]:
|
for rel_class, f in pending[model]:
|
||||||
sql = builder._ref_sql(model, rel_class, f, style)
|
sql = builder._ref_sql(model, rel_class, f, style)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user