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:
commit
d770e94687
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user