Detailed form API reference. For introductory material, see the Working with forms topic guide.
-
The Forms API
- Bound and unbound forms
- Using forms to validate data
- Dynamic initial values
- Checking which form data has changed
- Accessing the fields from the form
- Accessing “clean” data
- Outputting forms as HTML
- More granular output
- Customizing
BoundField
- Binding uploaded files to a form
- Subclassing forms
- Prefixes for forms
-
Form fields
- Core field arguments
- Checking if the field data has changed
- Built-in
Field
classes - Slightly complex built-in
Field
classes - Fields which handle relationships
- Creating custom fields
-
Model Form Functions
modelform_factory
modelformset_factory
inlineformset_factory
-
Formset Functions
formset_factory
-
Widgets
- Specifying widgets
- Setting arguments for widgets
- Widgets inheriting from the
Select
widget - Customizing widget instances
- Base widget classes
- Built-in widgets
-
Form and field validation
- Raising
ValidationError
- Using validation in practice
- Raising
Please login to continue.