summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2010-10-27 21:47:22 +0000
committerAdrian Holovaty <adrian@holovaty.com>2010-10-27 21:47:22 +0000
commit19a089ce761bd402fc1b94906b48338bb4ee1ac3 (patch)
tree738bebb9f8d3ba548cba7ec005159e6407a90294 /docs
parentc6f90f00535ab55d36fe687305d4aebdad197001 (diff)
Edited docs/ref/models/fields.txt change from [14049]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14367 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/models/fields.txt9
1 files changed, 3 insertions, 6 deletions
diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt
index 02ed60833f..fe87365783 100644
--- a/docs/ref/models/fields.txt
+++ b/docs/ref/models/fields.txt
@@ -927,15 +927,12 @@ define the details of how the relation works.
<abstract-base-classes>`; and when you do so
:ref:`some special syntax <abstract-related-name>` is available.
- If you wish to suppress the provision of a backwards relation, you may
- simply provide a ``related_name`` which ends with a ``'+'`` character.
- For example::
+ If you'd prefer Django didn't create a backwards relation, set ``related_name``
+ to ``'+'``. For example, this will ensure that the ``User`` model won't get a
+ backwards relation to this model::
user = models.ForeignKey(User, related_name='+')
- will ensure that no backwards relation to this model is provided on the
- ``User`` model.
-
.. attribute:: ForeignKey.to_field
The field on the related object that the relation is to. By default, Django