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

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

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

Form.fields You can access the fields of Form instance from its fields attribute:

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

Field.validators The validators argument lets you provide a list of validation functions for this field.

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

class URLInput [source] Text input: <input type="url" ...>

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

time_format Similar to TimeInput.format

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

input_formats A list of formats used to attempt to convert a string to a valid datetime.datetime object.

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

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

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

class TextInput [source] Text input: <input type="text" ...>

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

Form.cleaned_data Each field in a Form class is responsible not only for validating data, but also for “cleaning”

2025-01-10 15:47:30
forms.Widget.format_value()
  • References/Python/Django/API/Forms/Widgets

format_value(value) Cleans and returns a value for use in the widget template. value isn’t guaranteed to be valid

2025-01-10 15:47:30