Pupils at Pretoria Girls High School in Pretoria, South Africa, had been issued a new code of conduct which included policies on appearance, stipulating how they should wear their hair.