def convert_choice(value): if isinstance(value, str): return value.split(',') return value