Finish the work for django 1.5 migration