Handle django 1.6