mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
[1.5.x] Fixed #12346 -- Added a note on how to validate InlineFormSets.
Thanks johnsmith for the suggestion.
Backport of 181f63c22d
from master
This commit is contained in:
parent
4140bfb93c
commit
abce5abe66
3 changed files with 22 additions and 10 deletions
|
@ -42,8 +42,8 @@ Model Form Functions
|
|||
.. function:: inlineformset_factory(parent_model, model, form=ModelForm, formset=BaseInlineFormSet, fk_name=None, fields=None, exclude=None, extra=3, can_order=False, can_delete=True, max_num=None, formfield_callback=None)
|
||||
|
||||
Returns an ``InlineFormSet`` using :func:`modelformset_factory` with
|
||||
defaults of ``formset=BaseInlineFormSet``, ``can_delete=True``, and
|
||||
``extra=3``.
|
||||
defaults of ``formset=``:class:`~django.forms.models.BaseInlineFormSet`,
|
||||
``can_delete=True``, and ``extra=3``.
|
||||
|
||||
If your model has more than one :class:`~django.db.models.ForeignKey` to
|
||||
the ``parent_model``, you must specify a ``fk_name``.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue