forms.Field.widget
  • References/Python/Django/API/Forms/Form fields

Field.widget The widget argument lets you specify a Widget class to use when rendering this Field

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

Field.label_suffix The label_suffix argument lets you override the form’s

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

class FileInput [source] File upload input: <input type='file' ...>

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

choices Either an iterable (e.g., a list or tuple) of 2-tuples to use as choices for this field, or a callable that returns

2025-01-10 15:47:30
forms.models.inlineformset_factory()
  • References/Python/Django/API/Forms/Model Form Functions

inlineformset_factory(parent_model, model, form=ModelForm, formset=BaseInlineFormSet, fk_name=None, fields=None, exclude=None, extra=3, can_order=False, can_delete=True

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

value_omitted_from_data(data, files, name) [source] New

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

Field.localize The localize argument enables the localization of form data input, as well as the rendered output

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

queryset A QuerySet of model objects from which the choices for the field will be derived, and which will be used

2025-01-10 15:47:30
Form and field validation
  • References/Python/Django/API/Forms/Form and field validation

Form validation happens when the data is cleaned. If you want to customize this process, there are various places to make changes, each one serving a different purpose. Three

2025-01-10 15:47:30
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