Restores a transaction.managed to fix Django 1.3 & 1.4