Replace hashcompat deprecated in django 1.5