human
Complete this python program:
def autocommit(using=None):
assistant
#Here is the Python program 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.
    """
    warnings.warn('autocommit    is    deprecated    in    favor    of    set_autocommit.', PendingDeprecationWarning, stacklevel=2)
    def entering(using):
        enter_transaction_management(managed=False, using=using)
    def exiting(exc_type, using):
        leave_transaction_management(using=using)
    return _transaction_func(entering, exiting, using)