django/django — pull request #93 by akaariai (2012-05-26 23:32:21+00:00)
Title: Ticket #16047: fix autocommit restore on psycopg2

When using autocommit on psycopg2 the autocommit was never restored into use after first using a transaction managed block. In addition autocommit incorrectly reported the backend to not support transactions.

There are a couple of failing tests when running under psycopg2 with autocommit enabled in select_for_update tests. Those can be fixed in another commit.

I added a note in the release notes about this fix. Even if this is just a bugfix, it could have hard to find out effects for users who have autocommit enabled, so a little note in release notes seemed wise.