fix django 1.5 capable