summaryrefslogtreecommitdiff
path: root/docs/ref/forms/models.txt
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2013-07-08 08:29:28 -0400
committerTim Graham <timograham@gmail.com>2013-07-08 08:32:28 -0400
commitabce5abe6686551e68f7e8a663f8918c56d307b1 (patch)
treebc448032e75e997a9318dae234e378c6a518061f /docs/ref/forms/models.txt
parent4140bfb93c88470c1fb6c45a4ea15d819a6baa35 (diff)
[1.5.x] Fixed #12346 -- Added a note on how to validate InlineFormSets.
Thanks johnsmith for the suggestion. Backport of 181f63c22d from master
Diffstat (limited to 'docs/ref/forms/models.txt')
-rw-r--r--docs/ref/forms/models.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/ref/forms/models.txt b/docs/ref/forms/models.txt
index c388f402e6..3d83521091 100644
--- a/docs/ref/forms/models.txt
+++ b/docs/ref/forms/models.txt
@@ -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``.