class documentation
class ThreeWayToggle(forms.ChoiceField):
Constructor: ThreeWayToggle(widget_attrs, widget_option_attrs, widget_label, widget_tooltip, ...)
Field to choose one of three options: True, None and False.
True is represented by a plus sign and means "positive", None is represented by a ban sign and means "unknown", and False is represented by a minus sign and means "negative".
The field is rendered by the ThreeWayToggleWidget. Every LNL's involvement as
well as many binary risk factors such as smoking status, HPV status, and neck
dissection status are represented by this field.
| Method | __init__ |
Pass args like label and tooltip to constructor of custom widget. |
| Method | to |
Cast the string to an integer. "" is interpreted as None. |
def __init__(self, widget_attrs=None, widget_option_attrs=None, widget_label=None, widget_tooltip=None, choices=None, initial=None, required=False, **kwargs):
¶
Pass args like label and tooltip to constructor of custom widget.