1
0
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:
Jason Pellerin 2006-11-28 03:56:40 +00:00
parent 91d6569b47
commit 7e6d1365ba

View File

@ -166,8 +166,8 @@ class Manager(object):
for app in get_apps(): for app in get_apps():
for model in get_models(app): for model in get_models(app):
all_models.append(model) all_models.append(model)
return set([m for m in all_models return set([m for m in all_models
if m._meta.db_table in table_list]) if m._meta.db_table in table_list])
def get_table_list(self): def get_table_list(self):
"""Get list of tables accessible via my model's connection. """Get list of tables accessible via my model's connection.