make app compatibile with django 1.7