summaryrefslogtreecommitdiff
path: root/django/db/models/manager.py
diff options
context:
space:
mode:
authorJason Pellerin <jpellerin@gmail.com>2006-07-11 03:16:28 +0000
committerJason Pellerin <jpellerin@gmail.com>2006-07-11 03:16:28 +0000
commitc0132e88f6cdb6dbaa843e9075ae97419b8709d9 (patch)
tree8395e3fab53129566d2f6e67b2a468da6100eb63 /django/db/models/manager.py
parent3e562344abd75f655d7ad17ac65db81f4fd4125e (diff)
[multi-db] Added preliminary drop-table generation to django.db.backends.ansi.sql.SchemaBuilder.
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3320 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/db/models/manager.py')
-rw-r--r--django/db/models/manager.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/django/db/models/manager.py b/django/db/models/manager.py
index 04debd7cc6..450218650c 100644
--- a/django/db/models/manager.py
+++ b/django/db/models/manager.py
@@ -159,9 +159,8 @@ class Manager(object):
"""Get list of tables accessible via my model's connection.
"""
info = self.model._meta.connection_info
- cursor = info.connection.cursor()
- introspect = info.get_introspection_module()
- return introspect.get_table_list(cursor)
+ builder = info.get_creation_module.builder()
+ return builder.get_table_list(info)
class ManagerDescriptor(object):
# This class ensures managers aren't accessible via model instances.