Fix django 1.7 compatibility take 2.