class BaseFormSet(RenderableFormMixin):
Known subclasses: django.forms.models.BaseModelFormSet
Class Method | get_default_prefix |
Undocumented |
Class Method | get_deletion_widget |
Undocumented |
Class Method | get_ordering_widget |
Undocumented |
Method | get_context |
Undocumented |
Method | total_error_count |
Return the number of errors across all forms in the formset. |
Class Variable | template_name |
Undocumented |
Class Variable | template_name_p |
Undocumented |
Class Variable | template_name_table |
Undocumented |
Class Variable | template_name_ul |
Undocumented |
Method | __bool__ |
Return True since all formsets have a management form which is not included in the length. |
Method | __getitem__ |
Return the form at the given index, based on the rendering order. |
Method | __init__ |
Undocumented |
Method | __iter__ |
Yield the forms in the order they should be rendered. |
Method | __len__ |
Undocumented |
Method | _construct_form |
Instantiate and return the i-th form instance in a formset. |
Method | _should_delete_form |
Return whether or not the form was marked for deletion. |
Method | add_fields |
A hook for adding extra fields on to each form instance. |
Method | add_prefix |
Undocumented |
Method | clean |
No summary |
Method | full_clean |
Clean all of self.data and populate self._errors and self._non_form_errors. |
Method | get_form_kwargs |
Return additional keyword arguments for each individual formset form. |
Method | has_changed |
Return True if data in any form differs from initial. |
Method | initial_form_count |
Return the number of forms that are required in this FormSet. |
Method | is_multipart |
Return True if the formset needs to be multipart, i.e. it has FileInput, or False otherwise. |
Method | is_valid |
Return True if every form in self.forms is valid. |
Method | non_form_errors |
Return an ErrorList of errors that aren't associated with a particular form -- i.e., from formset.clean(). Return an empty ErrorList if there are none. |
Method | total_form_count |
Return the total number of forms in this FormSet. |
Class Variable | default_error_messages |
Undocumented |
Instance Variable | _errors |
Undocumented |
Instance Variable | _non_form_errors |
Undocumented |
Instance Variable | auto_id |
Undocumented |
Instance Variable | data |
Undocumented |
Instance Variable | error_class |
Undocumented |
Instance Variable | error_messages |
Undocumented |
Instance Variable | files |
Undocumented |
Instance Variable | form_kwargs |
Undocumented |
Instance Variable | initial |
Undocumented |
Instance Variable | is_bound |
Undocumented |
Instance Variable | prefix |
Undocumented |
Property | cleaned_data |
Return a list of form.cleaned_data dicts for every form in self.forms. |
Property | deleted_forms |
Return a list of forms that have been marked for deletion. |
Property | empty_form |
Undocumented |
Property | errors |
Return a list of form.errors for every form in self.forms. |
Property | extra_forms |
Return a list of all the extra forms in this formset. |
Property | forms |
Instantiate forms at first property access. |
Property | initial_forms |
Return a list of all the initial forms in this formset. |
Property | management_form |
Return the ManagementForm instance for this FormSet. |
Property | media |
Undocumented |
Property | ordered_forms |
Return a list of form in the order specified by the incoming data. Raise an AttributeError if ordering is not allowed. |
Inherited from RenderableFormMixin
:
Method | as_p |
Render as <p> elements. |
Method | as_table |
Render as <tr> elements excluding the surrounding <table> tag. |
Method | as_ul |
Render as <li> elements excluding the surrounding <ul> tag. |
Inherited from RenderableMixin
(via RenderableFormMixin
):
Method | render |
Undocumented |
django.contrib.contenttypes.forms.BaseGenericInlineFormSet
, django.forms.models.BaseInlineFormSet
Undocumented
django.forms.models.BaseModelFormSet
Undocumented
django.forms.models.BaseModelFormSet
django.forms.models.BaseModelFormSet
django.forms.models.BaseModelFormSet
Return additional keyword arguments for each individual formset form.
index will be None if the form being constructed is a new empty form.
django.forms.models.BaseModelFormSet