Female Teacher Syndrome
When you think your female teacher is absolutely smoking hot but in reality it's because she is the only (or least unattractive) female teacher.
Jim: "Mate, how fit is Miss Lee?!"
Dave: "Come off it, blatant case of female teacher syndrome there"
Dave: "Come off it, blatant case of female teacher syndrome there"