django 1.5 upgrade and fix from old version files