              self.fail('not_a_dict', input_type=type(data).__name__)
          return dict([
              (six.text_type(key), self.child.run_validation(value))
              for key, value in data.items()
          ])
  
      def to_representation(self, value):
          """
          List of object instances -> List of dicts of primitive datatypes.
          """
 
</s> remove         return dict([
            (six.text_type(key), self.child.to_representation(val))
 </s> add         return {
            six.text_type(key): self.child.to_representation(val) </s> remove         return dict([
            (six.text_type(key), self.child.run_validation(value))
 </s> add         return {
            six.text_type(key): self.child.run_validation(value) </s> remove         return set([
 </s> add         return { </s> remove         return set([
 </s> add         return { </s> remove         ])
 </s> add         }
        }
              self.fail('not_a_dict', input_type=type(data).__name__)
          return dict([
              (six.text_type(key), self.child.run_validation(value))
              for key, value in data.items()
        }
  
      def to_representation(self, value):
          """
          List of object instances -> List of dicts of primitive datatypes.
          """
keep keep keep keep replace keep keep keep keep keep
 Replaced all dict and set conversions from lists to dict and set literals. 
rest_framework/fields.py