Closed josejachuf closed 7 years ago
RuntimeError: Missing form widget for field my_field of type decimal(18,4) I tried with this:
@staticmethod def widget_decimal(attr, field, value, _class='float', _id=None): return FormStyle.widget_string(attr, field, value, _class, _id)
But expects the name of the property to be "widget_decimal(18,4)"
Also with this:
form_widgets = { 'my_field': FormStyle.widget_float }
TypeError: widget_float() missing 1 required positional argument: 'value'
@josejachuf yup this is a bug. I should patch the FormStyle class. Will keep you updated on this.
FormStyle
For now I solved it with a custom widget. Thanks
RuntimeError: Missing form widget for field my_field of type decimal(18,4) I tried with this:
But expects the name of the property to be "widget_decimal(18,4)"
Also with this:
TypeError: widget_float() missing 1 required positional argument: 'value'