django 1.6 deprecated fix