HUNKY Jon Hamm has a host of female fans – but Angelina Jolie isn’t one of them!

Pals say the gorgeous Oscar winner never forgave the “Mad Men” star for refusing to stand up for her close friend Bryan Batt, who was unceremoni­ously dumped from the smash hit AMC drama in 2009.

Angie, 38, finally got her revenge when it came time to cast the movie “12 Years a Slave,” which was produced by her lover Brad Pitt.

“Jon would have done anything to be part of this astonishing film,” an insider told The ENQUIRER. “He knew it was going to be the most important movie of the year.”

But Angie got word to director Steve McQueen to keep Hamm, 42, out of the film, say sources. And going one step further, she helped to get Bryan, 50, cast as a southern judge in the true-life story of a free black man who is kidnapped in Washington, D.C., and sold into slavery.

Angelina and Brad, who live part-time in New Orleans, be­came close friends with their Big Easy neighbor Bryan and his domestic partner.

“When Bryan broke the news to Angie that he was being written out of ‘Mad Men,’ she got on the horn to Jon and asked him to do something to save her friend’s job,” said the source.

“Although there was very little Jon could do to keep Bryan from getting fired, Angie never forgave him.”

Now that “12 Years a Slave” is garnering Oscar buzz, the source says: “Angie is thrilled that Bryan is able to part of it – and that Jon was left out.”