Author: adrian
Date: 2010-10-27 16:47:22 -0500 (Wed, 27 Oct 2010)
New Revision: 14367
Modified:
django/trunk/docs/ref/models/fields.txt
Log:
Edited docs/ref/models/fields.txt change from [14049]
Modified: django/trunk/docs/ref/models/fields.txt
===================================================================
--- django/trunk/docs/ref/models/fields.txt 2010-10-27 20:39:20 UTC (rev
14366)
+++ django/trunk/docs/ref/models/fields.txt 2010-10-27 21:47:22 UTC (rev
14367)
@@ -927,15 +927,12 @@
<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
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.