def save(self, doc):
        if doc.id:
            return self.update(doc)
        else:
            return self.insert(doc)
def serialize(self, value, display=False):
        if value is not None and display:
            return "********"
        return super().serialize(value, display)