class documentation
class ChoiceWidget(Widget): (source)
Known subclasses: django.forms.widgets.RadioSelect
, django.forms.widgets.Select
Undocumented
Method | __deepcopy__ |
Undocumented |
Method | __init__ |
Undocumented |
Method | create |
Undocumented |
Method | format |
Return selected values as a list. |
Method | get |
Undocumented |
Method | id |
Use an incremented id for each option where the main widget references the zero index. |
Method | optgroups |
Return a list of optgroups for this widget. |
Method | options |
Yield a flat list of options for this widget. |
Method | subwidgets |
Yield all "subwidgets" of this widget. Used to enable iterating options from a BoundField for choice widgets. |
Method | value |
Given a dictionary of data and this widget's name, return the value of this widget or None if it's not provided. |
Class Variable | add |
Undocumented |
Class Variable | allow |
Undocumented |
Class Variable | checked |
Undocumented |
Class Variable | input |
Undocumented |
Class Variable | option |
Undocumented |
Class Variable | option |
Undocumented |
Class Variable | template |
Undocumented |
Instance Variable | choices |
Undocumented |
Inherited from Widget
:
Method | build |
Build an attribute dictionary. |
Method | render |
Render the widget as an HTML string. |
Method | use |
Undocumented |
Method | value |
Undocumented |
Class Variable | is |
Undocumented |
Class Variable | is |
Undocumented |
Class Variable | needs |
Undocumented |
Class Variable | supports |
Undocumented |
Class Variable | use |
Undocumented |
Instance Variable | attrs |
Undocumented |
Property | is |
Undocumented |
Method | _render |
Undocumented |
overrides
django.forms.widgets.Widget.__init__
overridden in
django.contrib.admin.widgets.FilteredSelectMultiple
, django.forms.widgets.NullBooleanSelect
Undocumented
overrides
django.forms.widgets.Widget.format_value
overridden in
django.forms.widgets.NullBooleanSelect
Return selected values as a list.
overrides
django.forms.widgets.Widget.get_context
overridden in
django.forms.widgets.Select
Undocumented
overrides
django.forms.widgets.Widget.id_for_label
overridden in
django.forms.widgets.RadioSelect
Use an incremented id for each option where the main widget references the zero index.
overrides
django.forms.widgets.Widget.subwidgets
Yield all "subwidgets" of this widget. Used to enable iterating options from a BoundField for choice widgets.
Given a dictionary of data and this widget's name, return the value of this widget or None if it's not provided.