summaryrefslogtreecommitdiff
path: root/docs/topics
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2013-01-22 06:46:22 -0500
committerTim Graham <timograham@gmail.com>2013-01-22 07:55:34 -0500
commit5b2d9bacd2512bcdf371c05b0b43bc713dcca080 (patch)
tree329b7c59d71bbc6db3979a5d8eaed860bb95c6d6 /docs/topics
parente535da6865f0e02f0b593b52ed2e040b24a886d6 (diff)
Fixed #19640 - Added inlineformset_factory to reference docs.
Thanks wim@ for the suggestion.
Diffstat (limited to 'docs/topics')
-rw-r--r--docs/topics/forms/modelforms.txt9
1 files changed, 6 insertions, 3 deletions
diff --git a/docs/topics/forms/modelforms.txt b/docs/topics/forms/modelforms.txt
index 9a33d68cf7..c091e715bb 100644
--- a/docs/topics/forms/modelforms.txt
+++ b/docs/topics/forms/modelforms.txt
@@ -550,7 +550,7 @@ ModelForm factory function
--------------------------
You can create forms from a given model using the standalone function
-:class:`~django.forms.models.modelform_factory`, instead of using a class
+:func:`~django.forms.models.modelform_factory`, instead of using a class
definition. This may be more convenient if you do not have many customizations
to make::
@@ -857,6 +857,8 @@ primary key that isn't called ``id``, make sure it gets rendered.)
.. highlight:: python
+.. _inline-formsets:
+
Inline formsets
===============
@@ -881,7 +883,7 @@ a particular author, you could do this::
.. note::
- ``inlineformset_factory`` uses
+ :func:`~django.forms.models.inlineformset_factory` uses
:func:`~django.forms.models.modelformset_factory` and marks
``can_delete=True``.
@@ -901,7 +903,8 @@ the following model::
to_friend = models.ForeignKey(Friend)
length_in_months = models.IntegerField()
-To resolve this, you can use ``fk_name`` to ``inlineformset_factory``::
+To resolve this, you can use ``fk_name`` to
+:func:`~django.forms.models.inlineformset_factory`::
>>> FriendshipFormSet = inlineformset_factory(Friend, Friendship, fk_name="from_friend")