      We need to override the default behavior to get properly nested error dicts.
      """
  
      def __init__(self, message):
          self.messages = message
  
  
  class DictWithMetadata(dict):
      """
      A dict-like object, that can have additional properties attached.
 
</s> remove     then the child's `serializer.errors` will be a list of dicts.
 </s> add     then the child's `serializer.errors` will be a list of dicts.  In the case
    of a single child, the `serializer.errors` will be a dict. </s> remove                 self.object = serializer.object
                into[self.source or field_name] = serializer.object
 </s> add                 if isinstance(serializer, ModelSerializer):
                    into[self.source or field_name] = serializer
                else:
                    into[self.source or field_name] = serializer.object </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_object(object_list.object, parent=self.object, fk_field=fk_field)
                else:
                    setattr(self.object, accessor_name, object_list) </s> remove     def save_object(self, obj):
 </s> add     def save_object(self, obj, parent=None, fk_field=None):
        if isinstance(message, dict):
            self.messages = [message]
        else:
            self.messages = message
      We need to override the default behavior to get properly nested error dicts.
      """
  
      def __init__(self, message):
        if isinstance(message, dict):
            self.messages = [message]
        else:
            self.messages = message
  
  
  class DictWithMetadata(dict):
      """
      A dict-like object, that can have additional properties attached.
keep keep keep keep replace keep keep keep keep keep
 One-to-one writable, nested serializer support 
rest_framework/serializers.py