django-debug-toolbar/django-debug-toolbar — pull request #296 by akaariai (2012-07-05 11:06:23+00:00)
Title: Fix issue #230 -- do not check isolation level in aborted transactions

On PostgreSQL when the transaction is in aborted status, checking
connection.isolation_level will result in error because doing queries
in aborted transactions is illegal. Fixed this by skipping the
isolation level check when the transaction is aborted.