Commit c007ef83 authored by Bryan  BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

propagate the "help_text" attribute

parent f6c1d17d
......@@ -29,6 +29,10 @@ def bootstrap(object):
# we propagate the "required" attribute
if field.field.required:
attrs['required'] = 'required'
# we propagate the "help_text" attribute to the widget if possible
if field.help_text and "help_text" not in attrs:
attrs["help_text "] = field.help_text
if isinstance(field.field.widget, widgets.CheckboxInput):
# if it is a checkbox, we the classes are not the same
wrapping_classes = "form-check"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment