forms.FilePathField.path
  • References/Python/Django/API/Forms/Form fields

path The absolute path to the directory whose contents you want listed. This directory must exist.

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

Field.clean(value) [source] Although the primary way you’ll use Field classes

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

widget Must be a subclass of

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

allow_folders Optional. Either True or False. Default is False. Specifies whether folders

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

to_field_name This optional argument is used to specify the field to use as the value of the choices in the field’s widget.

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

class MultiValueField(fields=(), **kwargs) [source] Default widget:

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

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

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

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

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

Field.error_messages The error_messages argument lets you override the default messages that the field will raise

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

coerce A function that takes one argument and returns a coerced value. Examples include the built-in int, float

2025-01-10 15:47:30