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):
|
63 | 63 | super(DatabaseWrapper, self).__init__(*args, **kwargs) |
64 | 64 | |
65 | 65 | 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() |
69 | 69 | else: |
70 | | self.features.uses_autocommit = False |
71 | | self._iso_level_1() |
| 70 | self.features.uses_autocommit = False |
| 71 | self._iso_level_1() |
72 | 72 | self.ops = DatabaseOperations() |
73 | 73 | self.client = DatabaseClient(self) |
74 | 74 | self.creation = DatabaseCreation(self) |