docs: def update_redirect(self):
          """Update the parent redirect to the current last child.
  
          This method should be called on the parent PID node.
  
          Use this method when the status of a PID changed (ex: draft changed
          from RESERVED to REGISTERED)
          """
          if self.last_child:
              self._resolved_pid.redirect(self.last_child)
          elif any(map(lambda pid: pid.status not in [PIDStatus.DELETED,
                                                      PIDStatus.REGISTERED,
                                                      PIDStatus.RESERVED],
                       super(PIDNodeVersioning, self).children.all())):
              raise PIDRelationConsistencyError(
                  "Invalid relation state. Only REGISTERED, RESERVED "
                  "and DELETED PIDs are supported."
              )