Changeset 4453
- Timestamp:
- 01/30/07 13:06:08 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/0.91-bugfixes/django/core/db/backends/postgresql.py
r4419 r4453 55 55 56 56 def cursor(self): 57 from django.conf.settings import DATABASE_USER, DATABASE_NAME, DATABASE_HOST, DATABASE_PORT, DATABASE_PASSWORD, DEBUG, TIME_ZONE57 from django.conf.settings import DATABASE_USER, DATABASE_NAME, DATABASE_HOST, DATABASE_PORT, DATABASE_PASSWORD, DEBUG, DEFAULT_CHARSET, TIME_ZONE 58 58 if self.connection is None: 59 59 if DATABASE_NAME == '': … … 73 73 cursor = self.connection.cursor() 74 74 cursor.execute("SET TIME ZONE %s", [TIME_ZONE]) 75 cursor = UnicodeCursorWrapper(cursor, settings.DEFAULT_CHARSET)75 cursor = UnicodeCursorWrapper(cursor, DEFAULT_CHARSET) 76 76 if DEBUG: 77 77 return base.CursorDebugWrapper(cursor, self)
