Removed 'autocommit' options for the psycopg2 backend.

It was documented as not having any effect since Django 1.6.
This commit is contained in:
Aymeric Augustin 2015-02-14 17:31:53 +01:00
parent 28e97a9bdc
commit a73c8540a8
1 changed files with 1 additions and 4 deletions

View File

@ -146,10 +146,7 @@ class DatabaseWrapper(BaseDatabaseWrapper):
'database': settings_dict['NAME'] or 'postgres',
}
conn_params.update(settings_dict['OPTIONS'])
if 'autocommit' in conn_params:
del conn_params['autocommit']
if 'isolation_level' in conn_params:
del conn_params['isolation_level']
conn_params.pop('isolation_level', None)
if settings_dict['USER']:
conn_params['user'] = settings_dict['USER']
if settings_dict['PASSWORD']: