human
Complete this python program:
def autocommit(using=None):
assistant
#Here is the Python code you requested.

    """Decorator that activates commit on save. This is Django\s default behavior;
    this decorator is useful if you globally activated transaction management in
    your settings file and want the default behavior in some view functions.
    """
    def entering(using):
        enter_transaction_management(managed=False, using=using)
        managed(False, using=using)
    def exiting(exc_value, using):
        leave_transaction_management(using=using)
    return _transaction_func(entering, exiting, using)