

def create_dropdown_field(self, field, options):
    options['choices'] = map((lambda x: (x.strip(), x.strip())), field.choices.split(','))
    return django.forms.ChoiceField(**options)

dataset/ETHPy150Open torchbox/wagtail/wagtail/wagtailforms/forms.py FormBuilder.create_dropdown_field/original