Support django 1.7 migration