[1.5.x] Fixed #21338 -- Allow to use the same class name for proxy models