          if getattr(self, 'related_data', None):
              for accessor_name, object_list in self.related_data.items():
                  setattr(self.object, accessor_name, object_list)
              self.related_data = {}
  
          return self.object
  
  
  class HyperlinkedModelSerializerOptions(ModelSerializerOptions):
      """
 
</s> remove                 setattr(self.object, accessor_name, object_list)
 </s> add                 if isinstance(object_list, ModelSerializer):
                    fk_field = self.object._meta.get_field_by_name(accessor_name)[0].field.name
                    object_list._save(parent=self.object, fk_field=fk_field)
                else:
                    setattr(self.object, accessor_name, object_list) </s> remove     def save(self):
        """
        Save the deserialized object and return it.
        """
 </s> add     def _save(self, parent=None, fk_field=None):
        if parent and fk_field:
            setattr(self.object, fk_field, parent) </s> remove class BaseSerializer(Field):
 </s> add class BaseSerializer(WritableField): </s> remove                 self._errors[field_name] = list(err.messages)
 </s> add                 if hasattr(err, 'message_dict'):
                    self._errors[field_name] = [err.message_dict]
                else:
                    self._errors[field_name] = list(err.messages)
            
    def save(self):
        """
        Save the deserialized object and return it.
        """
        self._save()
          if getattr(self, 'related_data', None):
              for accessor_name, object_list in self.related_data.items():
                  setattr(self.object, accessor_name, object_list)
              self.related_data = {}
            
    def save(self):
        """
        Save the deserialized object and return it.
        """
        self._save()
          return self.object
  
  
  class HyperlinkedModelSerializerOptions(ModelSerializerOptions):
      """
keep keep keep keep replace keep keep keep keep keep
 Add nested create for 1to1 reverse relationships 
rest_framework/serializers.py