Class | BaseInlineFormSet |
A formset for child objects related to a parent. |
Class | BaseModelFormSet |
A FormSet for editing a queryset and/or adding new objects to it. |
Function | inlineformset_factory |
Return an InlineFormSet for the given kwargs. |
Function | modelform_factory |
Return a ModelForm containing form fields for the given model. You can optionally pass a form argument to use as a starting point for constructing the ModelForm. |
Function | modelformset_factory |
Return a FormSet class for the given Django model class. |
Constant | ALL_FIELDS |
Undocumented |
Class | BaseModelForm |
No class docstring; 0/2 instance variable, 4/8 methods documented |
Class | InlineForeignKeyField |
A basic integer field that deals with validating the given value to a given parent instance in an inline. |
Class | ModelChoiceField |
A ChoiceField whose choices are a model QuerySet. |
Class | ModelChoiceIterator |
Undocumented |
Class | ModelChoiceIteratorValue |
Undocumented |
Class | ModelForm |
Undocumented |
Class | ModelFormMetaclass |
Undocumented |
Class | ModelFormOptions |
Undocumented |
Class | ModelMultipleChoiceField |
A MultipleChoiceField whose choices are a model QuerySet. |
Function | _get_foreign_key |
No summary |
Function | apply_limit_choices_to_to_formfield |
Apply limit_choices_to to the formfield's queryset if needed. |
Function | construct_instance |
Construct and return a model instance from the bound form's cleaned_data, but do not save the returned instance to the database. |
Function | fields_for_model |
Return a dictionary containing form fields for the given model. |
Function | model_to_dict |
Return a dict containing the data in instance suitable for passing as a Form's initial keyword argument. |
Function | modelform_defines_fields |
Undocumented |
Return an InlineFormSet for the given kwargs.
fk_name must be provided if model has more than one ForeignKey to parent_model.
Return a ModelForm containing form fields for the given model. You can
optionally pass a form
argument to use as a starting point for
constructing the ModelForm.
fields is an optional list of field names. If provided, include only the named fields in the returned fields. If omitted or '__all__', use all fields.
exclude is an optional list of field names. If provided, exclude the named fields from the returned fields, even if they are listed in the fields argument.
widgets is a dictionary of model field names mapped to a widget.
localized_fields is a list of names of fields which should be localized.
formfield_callback is a callable that takes a model field and returns a form field.
labels is a dictionary of model field names mapped to a label.
help_texts is a dictionary of model field names mapped to a help text.
error_messages is a dictionary of model field names mapped to a dictionary of error messages.
field_classes is a dictionary of model field names mapped to a form field class.
Return a dictionary containing form fields for the given model.
fields is an optional list of field names. If provided, return only the named fields.
exclude is an optional list of field names. If provided, exclude the named fields from the returned fields, even if they are listed in the fields argument.
widgets is a dictionary of model field names mapped to a widget.
formfield_callback is a callable that takes a model field and returns a form field.
localized_fields is a list of names of fields which should be localized.
labels is a dictionary of model field names mapped to a label.
help_texts is a dictionary of model field names mapped to a help text.
error_messages is a dictionary of model field names mapped to a dictionary of error messages.
field_classes is a dictionary of model field names mapped to a form field class.
apply_limit_choices_to is a boolean indicating if limit_choices_to should be applied to a field's queryset.
Return a dict containing the data in instance suitable for passing as a Form's initial keyword argument.
fields is an optional list of field names. If provided, return only the named.
exclude is an optional list of field names. If provided, exclude the named from the returned dict, even if they are listed in the fields argument.