class documentation
class Select(ChoiceWidget): (source)
Known subclasses: django.contrib.admin.widgets.AutocompleteSelect
, django.forms.widgets.NullBooleanSelect
, django.forms.widgets.SelectMultiple
Undocumented
Method | get |
Undocumented |
Method | use |
Don't render 'required' if the first <option> has a value, as that's invalid HTML. |
Class Variable | add |
Undocumented |
Class Variable | checked |
Undocumented |
Class Variable | input |
Undocumented |
Class Variable | option |
Undocumented |
Class Variable | option |
Undocumented |
Class Variable | template |
Undocumented |
Static Method | _choice |
Return True if the choice's value is empty string or None. |
Inherited from ChoiceWidget
:
Method | __deepcopy__ |
Undocumented |
Method | __init__ |
Undocumented |
Method | create |
Undocumented |
Method | format |
Return selected values as a list. |
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 | allow |
Undocumented |
Instance Variable | choices |
Undocumented |
Inherited from Widget
(via ChoiceWidget
):
Method | build |
Build an attribute dictionary. |
Method | render |
Render the widget as an HTML string. |
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 |