forms.ChoiceField
  • References/Python/Django/API/Forms/Form fields

class ChoiceField(**kwargs) [source] Default widget:

2025-01-10 15:47:30
forms.TypedChoiceField.empty_value
  • References/Python/Django/API/Forms/Form fields

empty_value The value to use to represent “empty.” Defaults to the empty string; None is another common choice

2025-01-10 15:47:30
forms.NumberInput
  • References/Python/Django/API/Forms/Widgets

class NumberInput [source] Text input: <input type="number" ...>

2025-01-10 15:47:30
forms.Form.is_bound
  • References/Python/Django/API/Forms/The Forms API

Form.is_bound If you need to distinguish between bound and unbound form instances at runtime, check the value of the form’s

2025-01-10 15:47:30
forms.DateTimeInput.format
  • References/Python/Django/API/Forms/Widgets

format The format in which this field’s initial value will be displayed. If no format

2025-01-10 15:47:30
forms.BoundField.label
  • References/Python/Django/API/Forms/The Forms API

BoundField.label The

2025-01-10 15:47:30
forms.BoundField.form
  • References/Python/Django/API/Forms/The Forms API

BoundField.form The Form instance this BoundField is bound to.

2025-01-10 15:47:30
forms.GenericIPAddressField
  • References/Python/Django/API/Forms/Form fields

class GenericIPAddressField(**kwargs) [source] A field containing either an IPv4 or an IPv6

2025-01-10 15:47:30
forms.Form.has_error()
  • References/Python/Django/API/Forms/The Forms API

Form.has_error(field, code=None) This method returns a boolean designating whether a field has an error with a specific error

2025-01-10 15:47:30
forms.BoundField.name
  • References/Python/Django/API/Forms/The Forms API

BoundField.name The name of this field in the form: >>>

2025-01-10 15:47:30