title: Sharing transaction scope between threads in python/django? (PostgreSQL)
body: <p>Is there any way to share same transaction between two threads in a django-based code?</p>
  
  <p>The problem is that I have 1.1's TestCase (those that wrap individual tests into transactions) that are intended to test code that is running in a different thread [a sort of asynchronous testing]. So these test create some data that is intended to be used by this second thread. Obviously, since this data is created within a transaction scope, it is not visible to the second thread. But since that should basically be the same connection to PgSQL (should it?) I hope there is a way to share this transaction scope so my second thread can access data being added within it?..</p>
  
  <p>Any idea?</p>
  
  <p>Database is PgSQL 8.3, driver is postgresql_psycopg2. Django — trunk.</p>