bug fix fox django 1.5 compatibility