Get fields from model