              # initial_data may not be a valid type
              if not isinstance(self.initial_data, Mapping):
                  return OrderedDict()
  
              return OrderedDict([
                  (field_name, field.get_value(self.initial_data))
                  for field_name, field in self.fields.items()
                  if (field.get_value(self.initial_data) is not empty) and
                  not field.read_only
              ])
  
 
</s> remove                 return OrderedDict()
 </s> add                 return {} </s> remove             ])
 </s> add             } </s> remove         return OrderedDict([
            (field_name, self.get_field_info(field))
 </s> add         return {
            field_name: self.get_field_info(field) </s> remove     fields = OrderedDict()
 </s> add     fields = {} </s> remove         defaults = OrderedDict()
 </s> add         defaults = {}
            return {
                field_name: field.get_value(self.initial_data)
              # initial_data may not be a valid type
              if not isinstance(self.initial_data, Mapping):
                  return OrderedDict()
  
            return {
                field_name: field.get_value(self.initial_data)
            return {
                field_name: field.get_value(self.initial_data)
                  for field_name, field in self.fields.items()
                  if (field.get_value(self.initial_data) is not empty) and
                  not field.read_only
              ])
  
keep keep keep keep replace replace keep keep keep keep keep
 Replaced `OrderedDict` with `dict` (#8964) 
rest_framework/serializers.py