def save(self, doc):
        if doc.id:
            return self.update(doc)
        else:
            return self.insert(doc)
def __set__(self, obj: t.Any, value: t.Any) -> None:
        obj.config[self.__name__] = value