summaryrefslogtreecommitdiff
path: root/django/db/backends/postgresql
diff options
context:
space:
mode:
authorJason Pellerin <jpellerin@gmail.com>2006-07-21 18:15:02 +0000
committerJason Pellerin <jpellerin@gmail.com>2006-07-21 18:15:02 +0000
commit422aadfe2aea988927888b970fcce4e8ce492fac (patch)
tree7044d03417220c659eb18f7de54a1a5be65150b7 /django/db/backends/postgresql
parente2385e3c535cc7f48200d8d0bd3fea61eafcb98e (diff)
[multi-db] Updated runshell() calls to accept settings.
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3412 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/db/backends/postgresql')
-rw-r--r--django/db/backends/postgresql/client.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/django/db/backends/postgresql/client.py b/django/db/backends/postgresql/client.py
index 8123ec7848..38428a9c62 100644
--- a/django/db/backends/postgresql/client.py
+++ b/django/db/backends/postgresql/client.py
@@ -1,7 +1,6 @@
-from django.conf import settings
import os
-def runshell():
+def runshell(settings):
args = ['psql']
if settings.DATABASE_USER:
args += ["-U", settings.DATABASE_USER]