See base class.

def serialize(self, value):
    """See base class."""
    if isinstance(value, list):
      return self.list_sep.join(_helpers.str_or_unicode(x.name) for x in value)
    else:
      return _helpers.str_or_unicode(value.name)