switch to django 1.6 style transaction management