It sounds like there have been a few other code of conduct violations and the schools issue with his hair style was the final straw. Who knows if the previous “violations of the code” were also rooted in racism, but either way, a hair style should never be the ultimate reason someone is expelled unless they’ve purposefully shaved an offensive slurr into their hair.