"Model.getfields ignores inherited fields" bug fixed