﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
24318	Can't configure Postgres isolation level if using recent psycopg2	Carl Meyer	Aymeric Augustin	"According to [https://docs.djangoproject.com/en/dev/ref/databases/#isolation-level our docs], you should be able to set `OPTIONS['isolation_level']` on a database connection to configure the Postgres isolation level. But according to a report on django-users, which I confirmed by code inspection, on at least Django 1.7+ setting `OPTIONS['isolation_level']` has no effect if you are using psycopg2 2.4.2+.

The only place the configured `isolation_level` is referenced is in the backend's [https://github.com/django/django/blob/master/django/db/backends/postgresql_psycopg2/base.py#L198 _set_autocommit()] method, and there it is only used if using an older psycopg2.

In 1.7 we had a `_set_isolation_level()` method on the PG backend, but it was never called, and has since been removed in master.

This bug probably dates back to the transaction changes in Django 1.6, though I haven't confirmed that."	Bug	closed	Database layer (models, ORM)	1.7	Release blocker	fixed			Accepted	1	0	0	0	0	0
