Added a field map to the generator to handle fields like SortedListField