Local-moment model of ferromagnetism in metallic compounds