WOBULENZI, Uganda — When the Miss Uganda contestants arrived at this sprawling farm outside Kampala, they quickly realized their high-heels would not be useful. So they put on gumboots and strutted awkwardly as they took turns learning how to milk a cow. The scene is just what the organizers of Uganda’s annual beauty pageant wanted: Beautiful women getting their hands dirty to promote farming. This was not always the case.