Ticket #10469: diff.diff

File diff.diff, 1.0 KB (added by Alex Gaynor, 16 years ago)
  • django/db/backends/postgresql_psycopg2/base.py

    diff --git a/django/db/backends/postgresql_psycopg2/base.py b/django/db/backends/postgresql_psycopg2/base.py
    index eee5258..67b73f3 100644
    a b class DatabaseWrapper(BaseDatabaseWrapper):  
    6363        super(DatabaseWrapper, self).__init__(*args, **kwargs)
    6464
    6565        self.features = DatabaseFeatures()
    66         if settings.DATABASE_OPTIONS.get('autocommit', False):
    67           self.features.uses_autocommit = True
    68           self._iso_level_0()
     66        if self.settings_dict['DATABASE_OPTIONS'].get('autocommit', False):
     67            self.features.uses_autocommit = True
     68            self._iso_level_0()
    6969        else:
    70           self.features.uses_autocommit = False
    71           self._iso_level_1()
     70            self.features.uses_autocommit = False
     71            self._iso_level_1()
    7272        self.ops = DatabaseOperations()
    7373        self.client = DatabaseClient(self)
    7474        self.creation = DatabaseCreation(self)
Back to Top