Fix regression for django.db.transaction.managed
Merge remote-tracking branch 'ticosax/fix-regression'