Change fields attribute from list to tuple