mirror of
https://github.com/django/django.git
synced 2025-07-04 09:49:12 +00:00
[multi-db] Fixed bug in manager.get_installed_models() that caused installed models list to always have only one model.
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@4126 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
91d6569b47
commit
7e6d1365ba
@ -166,8 +166,8 @@ class Manager(object):
|
||||
for app in get_apps():
|
||||
for model in get_models(app):
|
||||
all_models.append(model)
|
||||
return set([m for m in all_models
|
||||
if m._meta.db_table in table_list])
|
||||
return set([m for m in all_models
|
||||
if m._meta.db_table in table_list])
|
||||
|
||||
def get_table_list(self):
|
||||
"""Get list of tables accessible via my model's connection.
|
||||
|
Loading…
x
Reference in New Issue
Block a user