

@property
def formfields(self):
    formfields = OrderedDict()
    for field in self.fields:
        options = self.get_field_options(field)
        if (field.field_type in self.FIELD_TYPES):
            formfields[field.clean_name] = self.FIELD_TYPES[field.field_type](self, field, options)
        else:
            raise Exception(('Unrecognised field type: ' + field.field_type))
    return formfields

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