The primary school headmistress who banned parents from wearing pyjamas to school says she felt she had to when parents wore them to parents evening.