diff --git a/product/Formulator/Widget.py b/product/Formulator/Widget.py index d5912c07252032f41d225774e692cb99c0b9e47c..8916d69701e8ea486c32a01bb12eec65633f44da 100644 --- a/product/Formulator/Widget.py +++ b/product/Formulator/Widget.py @@ -1280,7 +1280,7 @@ class FloatWidget(TextWidget): title='Precision', description=( "Number of digits after the decimal point"), - default=None, + default='', required=0) def format_value(self, field, value): @@ -1394,7 +1394,7 @@ class FloatWidget(TextWidget): query : Passthrough of given value. """ input_style = field.get_value('input_style') - precision = field.get_value('precision') + precision = field.get_value('precision') if precision not in (None, '') and precision != 0: for x in xrange(1, precision): input_style += '5'