forms: fixed a bug in default values

This commit is contained in:
Ramkrishna Chakrabarty
2010-04-08 16:21:53 -04:00
parent fc58d32535
commit cb3ec8453f
+1 -1
View File
@@ -1349,7 +1349,7 @@ class FormDefinition( object ):
value = False
else:
# Set other field types to the default value of the field
value = field['default']
value = field.get('default', '')
# create the field widget
field_widget = eval( field[ 'type' ] )( field_name )
if field[ 'type' ] == 'TextField':