diff options
| author | Jason Pellerin <jpellerin@gmail.com> | 2006-11-28 03:56:40 +0000 |
|---|---|---|
| committer | Jason Pellerin <jpellerin@gmail.com> | 2006-11-28 03:56:40 +0000 |
| commit | 7e6d1365ba3c912b0582e291a5ae7d345f64abe3 (patch) | |
| tree | ae23c0a7612052197c1b5097e9606a1e95261622 | |
| parent | 91d6569b479096b2e13262a9c1cc120f13eec603 (diff) | |
[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
| -rw-r--r-- | django/db/models/manager.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/db/models/manager.py b/django/db/models/manager.py index 4cf667b125..2a109e4015 100644 --- a/django/db/models/manager.py +++ b/django/db/models/manager.py @@ -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. |
