From eb97c80010dc50d42cf3af7fe8aeaff22beb5b64 Mon Sep 17 00:00:00 2001 From: James Bennett Date: Tue, 30 Jan 2007 19:04:57 +0000 Subject: [PATCH] 0.90-bugfixes: fix for backport in [4418] git-svn-id: http://code.djangoproject.com/svn/django/branches/0.90-bugfixes@4452 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/db/backends/postgresql.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/django/core/db/backends/postgresql.py b/django/core/db/backends/postgresql.py index fa587f01ca..98657e2358 100644 --- a/django/core/db/backends/postgresql.py +++ b/django/core/db/backends/postgresql.py @@ -47,7 +47,7 @@ class DatabaseWrapper: self.queries = [] def cursor(self): - from django.conf.settings import DATABASE_USER, DATABASE_NAME, DATABASE_HOST, DATABASE_PORT, DATABASE_PASSWORD, DEBUG, TIME_ZONE + from django.conf.settings import DATABASE_USER, DATABASE_NAME, DATABASE_HOST, DATABASE_PORT, DATABASE_PASSWORD, DEBUG, DEFAULT_CHARSET, TIME_ZONE if self.connection is None: if DATABASE_NAME == '': from django.core.exceptions import ImproperlyConfigured @@ -65,7 +65,7 @@ class DatabaseWrapper: self.connection.set_isolation_level(1) # make transactions transparent to all cursors cursor = self.connection.cursor() cursor.execute("SET TIME ZONE %s", [TIME_ZONE]) - cursor = UnicodeCursorWrapper(cursor, settings.DEFAULT_CHARSET) + cursor = UnicodeCursorWrapper(cursor, DEFAULT_CHARSET) if DEBUG: return base.CursorDebugWrapper(cursor, self) return cursor