Why the replace ? Spaces do work anyway ? 
I think there also could be a django routine for handling xxx_yyy situations, since it is common problem.

Next time, please use review-board, this is not as flexible and nice, and easily forgotten to look at.