code: def update(self, _attributes=None, **attributes):
          
          if _attributes is not None:
              attributes.update(_attributes)
  
          instance = self.get_results()
  
          return instance.fill(attributes).save()
docs: Update the parent model on the relationship.
  
          :param attributes: The update attributes
          :type attributes: dict
  
          :rtype: mixed