0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00

Merge pull request #713 from nimasmi/fix_wagtailforms_formfields

Fix typo in wagtailforms.forms.FormBuilder.formfields
This commit is contained in:
Karl Hobley 2014-10-17 12:14:33 +01:00
commit d770e94687

View File

@ -83,7 +83,7 @@ class FormBuilder(object):
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: " + form.field_type)
raise Exception("Unrecognised field type: " + field.field_type)
return formfields