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

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

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

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

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.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.fields
  • References/Python/Django/API/Forms/Form fields

fields A tuple of fields whose values are cleaned and subsequently combined into a single value. Each value of the field is

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
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.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.MultiValueField
  • References/Python/Django/API/Forms/Form fields

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

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

match A regular expression pattern; only files with names matching this expression will be allowed as choices.

2025-01-10 15:47:30