Support django 1.6