      def to_representation(self, instance):
          """
          Object instance -> Dict of primitive datatypes.
          """
          ret = ReturnDict(serializer=self)
          fields = [field for field in self.fields.values() if not field.write_only]
  
          for field in fields:
              attribute = field.get_attribute(instance)
              if attribute is None:
 
</s> remove         ret = {}
        errors = ReturnDict(serializer=self)
 </s> add         ret = OrderedDict()
        errors = OrderedDict() </s> remove         return ReturnList(
            [self.child.to_representation(item) for item in iterable],
            serializer=self
        )
 </s> add         return [
            self.child.to_representation(item) for item in iterable
        ] </s> remove             return ReturnDict([
 </s> add             return OrderedDict([ </s> remove             ], serializer=self)
 </s> add             ]) </s> remove         return ReturnDict([
 </s> add         return OrderedDict([
        ret = OrderedDict()
      def to_representation(self, instance):
          """
          Object instance -> Dict of primitive datatypes.
          """
        ret = OrderedDict()
          fields = [field for field in self.fields.values() if not field.write_only]
  
          for field in fields:
              attribute = field.get_attribute(instance)
              if attribute is None:
keep keep keep keep replace keep keep keep keep keep
 ReturnList and ReturnDict wrapped at nicer point 
rest_framework/serializers.py