class Widget:
Known subclasses: django.contrib.gis.forms.widgets.BaseGeometryWidget
, django.contrib.admin.widgets.RelatedFieldWidgetWrapper
, django.contrib.auth.forms.ReadOnlyPasswordHashWidget
, django.contrib.postgres.forms.array.SplitArrayWidget
, django.forms.widgets.ChoiceWidget
, django.forms.widgets.Input
, django.forms.widgets.MultiWidget
, django.forms.widgets.SelectDateWidget
, django.forms.widgets.Textarea
Undocumented
Method | __deepcopy__ |
Undocumented |
Method | __init__ |
Undocumented |
Method | _render |
Undocumented |
Method | build_attrs |
Build an attribute dictionary. |
Method | format_value |
Return a value as it should appear when rendered in a template. |
Method | get_context |
Undocumented |
Method | id_for_label |
Return the HTML ID attribute of this Widget for use by a <label>, given the ID of the field. Return None if no ID is available. |
Method | render |
Render the widget as an HTML string. |
Method | subwidgets |
Undocumented |
Method | use_required_attribute |
Undocumented |
Method | value_from_datadict |
Given a dictionary of data and this widget's name, return the value of this widget or None if it's not provided. |
Method | value_omitted_from_data |
Undocumented |
Class Variable | is_localized |
Undocumented |
Class Variable | is_required |
Undocumented |
Class Variable | needs_multipart_form |
Undocumented |
Class Variable | supports_microseconds |
Undocumented |
Instance Variable | attrs |
Undocumented |
Property | is_hidden |
Undocumented |
django.contrib.gis.forms.widgets.BaseGeometryWidget
, django.contrib.admin.widgets.RelatedFieldWidgetWrapper
, django.contrib.postgres.forms.array.SplitArrayWidget
, django.forms.widgets.ChoiceWidget
, django.forms.widgets.Input
, django.forms.widgets.MultiWidget
, django.forms.widgets.SelectDateWidget
, django.forms.widgets.Textarea
Undocumented
django.contrib.admin.widgets.ManyToManyRawIdWidget
, django.forms.widgets.CheckboxInput
, django.forms.widgets.ChoiceWidget
, django.forms.widgets.DateTimeBaseInput
, django.forms.widgets.FileInput
, django.forms.widgets.MultipleHiddenInput
, django.forms.widgets.SelectDateWidget
django.contrib.gis.forms.widgets.BaseGeometryWidget
, django.contrib.admin.widgets.RelatedFieldWidgetWrapper
, django.contrib.auth.forms.ReadOnlyPasswordHashWidget
, django.contrib.gis.admin.OpenLayersWidget
, django.contrib.postgres.forms.array.SplitArrayWidget
, django.forms.widgets.ChoiceWidget
, django.forms.widgets.Input
, django.forms.widgets.MultiWidget
, django.forms.widgets.SelectDateWidget
Undocumented
django.contrib.admin.widgets.RelatedFieldWidgetWrapper
, django.contrib.auth.forms.ReadOnlyPasswordHashWidget
, django.contrib.postgres.forms.array.SplitArrayWidget
, django.forms.widgets.ChoiceWidget
, django.forms.widgets.MultiWidget
, django.forms.widgets.SelectDateWidget
Return the HTML ID attribute of this Widget for use by a <label>, given the ID of the field. Return None if no ID is available.
This hook is necessary because some widgets have multiple HTML elements and, thus, multiple IDs. In that case, this method should return an ID value that corresponds to the first ID in the widget's tags.
django.forms.widgets.ChoiceWidget
Undocumented
django.forms.widgets.CheckboxSelectMultiple
, django.forms.widgets.FileInput
, django.forms.widgets.Select
Undocumented
django.contrib.admin.widgets.ManyToManyRawIdWidget
, django.contrib.admin.widgets.RelatedFieldWidgetWrapper
, django.contrib.postgres.forms.array.SplitArrayWidget
, django.forms.widgets.CheckboxInput
, django.forms.widgets.ChoiceWidget
, django.forms.widgets.FileInput
, django.forms.widgets.MultipleHiddenInput
, django.forms.widgets.MultiWidget
, django.forms.widgets.SelectDateWidget
django.contrib.admin.widgets.RelatedFieldWidgetWrapper
, django.contrib.postgres.forms.array.SplitArrayWidget
, django.forms.widgets.CheckboxInput
, django.forms.widgets.CheckboxSelectMultiple
, django.forms.widgets.FileInput
, django.forms.widgets.MultiWidget
, django.forms.widgets.SelectDateWidget
, django.forms.widgets.SelectMultiple
Undocumented