Fix django1.5 problem