Fix transaction management (back to old Django 1.5 syntax)

Still using Django 1.5, going back to 1.5 compatible syntax