      return pk
  
  
  def _get_fields(opts):
      fields = OrderedDict()
      for field in [field for field in opts.fields if field.serialize and not field.remote_field]:
          fields[field.name] = field
  
      return fields
  
 
</s> remove         by_name = OrderedDict((f.name, f) for f in fields)
 </s> add         by_name = {f.name: f for f in fields} </s> remove         defaults = OrderedDict()
 </s> add         defaults = {} </s> remove             ])
 </s> add             } </s> remove         ret = OrderedDict()
        errors = OrderedDict()
 </s> add         ret = {}
        errors = {} </s> remove                 return OrderedDict()
 </s> add                 return {}
    fields = {}
      return pk
  
  
  def _get_fields(opts):
    fields = {}
      for field in [field for field in opts.fields if field.serialize and not field.remote_field]:
          fields[field.name] = field
  
      return fields
  
keep keep keep keep replace keep keep keep keep keep
 Replaced `OrderedDict` with `dict` (#8964) 
rest_framework/utils/model_meta.py