forms.DecimalField.decimal_places
  • References/Python/Django/API/Forms/Form fields

decimal_places The maximum number of decimal places permitted.

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

class TypedChoiceField(**kwargs) [source] Just like a ChoiceField, except

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

require_all_fields Defaults to True, in which case a required validation error will be raised if no

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

class Field(**kwargs) [source] When you create a Form class, the most important

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

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

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

Field.label The label argument lets you specify the “human-friendly” label for this field. This is used when the

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

class SplitDateTimeField(**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
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.URLField.min_length
  • References/Python/Django/API/Forms/Form fields

min_length These are the same as CharField.max_length and CharField.min_length.

2025-01-10 15:47:30