The paper provides an overview on the results of the analyses of spectro-polarimetric observations of white dwarfs, subdwarfs, and central stars of planetary nebulae. It will also discuss the question of the origin of the magnetic fields in white dwarfs.