blob: 7db92dc862e2fe514aa3635c20194e8bbdbde4bb [file] [log] [blame] [edit]
from django.core import management
import common
from autotest_lib.frontend import settings
management.setup_environ(settings)
def enable_autocommit():
from django.db import connection
connection.cursor() # ensure a connection is open
connection.connection.autocommit(True)