          if hasattr(serializer, 'child'):
              # If this is a `ListSerializer` then we want to examine the
              # underlying child serializer instance instead.
              serializer = serializer.child
          return OrderedDict([
              (field_name, self.get_field_info(field))
              for field_name, field in serializer.fields.items()
              if not isinstance(field, serializers.HiddenField)
          ])
  
      def get_field_info(self, field):
 
</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 {} </s> remove             ])
 </s> add             } </s> remove from collections import OrderedDict, namedtuple
 </s> add from collections import namedtuple </s> remove         choices = list(OrderedDict.fromkeys(field.choices))  # preserve order and remove duplicates
 </s> add         choices = list(dict.fromkeys(field.choices))  # preserve order and remove duplicates
        return {
            field_name: self.get_field_info(field)
          if hasattr(serializer, 'child'):
              # If this is a `ListSerializer` then we want to examine the
              # underlying child serializer instance instead.
              serializer = serializer.child
        return {
            field_name: self.get_field_info(field)
        return {
            field_name: self.get_field_info(field)
              for field_name, field in serializer.fields.items()
              if not isinstance(field, serializers.HiddenField)
          ])
  
      def get_field_info(self, field):
keep keep keep keep replace replace keep keep keep keep keep
 Replaced `OrderedDict` with `dict` (#8964) 
rest_framework/metadata.py