Fix test warn on django 1.7