          instance = super(ModelSerializer, self).from_native(data, files)
          if instance:
              return self.full_clean(instance)
  
      def save_object(self, obj):
          """
          Save the deserialized object and return it.
          """
          obj.save()
  
 
</s> remove         if self.parent.object:
            # Set the serializer object if it exists
            obj = getattr(self.parent.object, field_name)
            self.object = obj
 </s> add         # Set the serializer object if it exists
        obj = getattr(self.parent.object, field_name) if self.parent.object else None </s> remove         self.messages = message
 </s> add         if isinstance(message, dict):
            self.messages = [message]
        else:
            self.messages = message </s> remove             def __cmp__(self, other):
 </s> add             def __eq__(self, other): </s> remove             def __cmp__(self, other):
 </s> add             def __eq__(self, other):
    def save_object(self, obj, parent=None, fk_field=None):
          instance = super(ModelSerializer, self).from_native(data, files)
          if instance:
              return self.full_clean(instance)
  
    def save_object(self, obj, parent=None, fk_field=None):
          """
          Save the deserialized object and return it.
          """
          obj.save()
  
keep keep keep keep replace keep keep keep keep keep
 One-to-one writable, nested serializer support 
rest_framework/serializers.py