              field for field in self.fields.values()
              if (field.read_only) and (field.default != empty) and (field.source != '*') and ('.' not in field.source)
          ]
  
          defaults = OrderedDict()
          for field in fields:
              try:
                  default = field.get_default()
              except SkipField:
                  continue
 
</s> remove             ])
 </s> add             } </s> remove     fields = OrderedDict()
 </s> add     fields = {} </s> remove     ])
 </s> add     } </s> remove             return OrderedDict([
                (field_name, field.get_value(self.initial_data))
 </s> add             return {
                field_name: field.get_value(self.initial_data) </s> remove                 return OrderedDict()
 </s> add                 return {}
        defaults = {}
              field for field in self.fields.values()
              if (field.read_only) and (field.default != empty) and (field.source != '*') and ('.' not in field.source)
          ]
  
        defaults = {}
          for field in fields:
              try:
                  default = field.get_default()
              except SkipField:
                  continue
keep keep keep keep replace keep keep keep keep keep
 Replaced `OrderedDict` with `dict` (#8964) 
rest_framework/serializers.py