Only use set_autocommit in Django>=1.6