made it conform with django 1.7