def yaml(self):
        return yaml.dump(self.serialized, default_flow_style=False,
                         encoding=None)
def serialize(self, value, display=False):
        """Convert value back to string for saving."""
        if value is None:
            return ""
        return str(value)