  
          # Add in any hidden fields.
          ret.update(hidden_fields)
  
          return ret
  
      # Methods for determining the set of field names to include...
  
      def get_field_names(self, declared_fields, info):
          """
 
</s> remove         ret.update(hidden_fields)
 </s> add         fields.update(hidden_fields) </s> remove             ret[field_name] = field_cls(**kwargs)
 </s> add             fields[field_name] = field_class(**field_kwargs) </s> remove             # Populate any kwargs defined in `Meta.extra_kwargs`
            kwargs = self.build_field_kwargs(kwargs, extra_kwargs, field_name)
 </s> add             # Include any kwargs defined in `Meta.extra_kwargs`
            field_kwargs = self.build_field_kwargs(
                field_kwargs, extra_kwargs, field_name
            ) </s> remove     def build_field(self, field_name, info, model, nested_depth):
 </s> add     def build_field(self, field_name, info, model_class, nested_depth): </s> remove         # Now determine the fields that should be included on the serializer.
        ret = OrderedDict()
 </s> add         # Determine the fields that should be included on the serializer.
        fields = OrderedDict()

        return fields
  
          # Add in any hidden fields.
          ret.update(hidden_fields)
  
        return fields
  
      # Methods for determining the set of field names to include...
  
      def get_field_names(self, declared_fields, info):
          """
keep keep keep keep replace keep keep keep keep keep
 Final bits of docs for ModelSerializer fields API 
rest_framework/serializers.py