def savepoint(using=None):
 if (using is None):
  using = DEFAULT_DB_ALIAS
 connection = connections[using]
 return connection.savepoint()

def savepoint ( using = None ) : if ( using is None ) : using = DEFAULT_DB_ALIAS connection = connections [ using ] return connection . savepoint ( )
creates a savepoint inside the current transaction .