summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2016-11-21 12:30:54 -0500
committerTim Graham <timograham@gmail.com>2016-11-21 12:30:54 -0500
commit55adfc076030fc6be2c8d459c4c0a5c91cd4c94c (patch)
tree6aae3cf8a1c5583b05560cbadcf2e1ff41e6cc28
parent19e2114634c322d5a58f3dd282a3a3cfd0f5aa24 (diff)
Fixed #27511 -- Corrected Field.related_model docs about GenericRelation.
-rw-r--r--docs/ref/models/fields.txt5
1 files changed, 2 insertions, 3 deletions
diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt
index c50f09b401..ba01f5f0bc 100644
--- a/docs/ref/models/fields.txt
+++ b/docs/ref/models/fields.txt
@@ -2007,6 +2007,5 @@ have boolean values (rather than ``None``) if the field is a relation type
.. attribute:: Field.related_model
Points to the model the field relates to. For example, ``Author`` in
- ``ForeignKey(Author, on_delete=models.CASCADE)``. If a field has a generic
- relation (such as a ``GenericForeignKey`` or a ``GenericRelation``) then
- ``related_model`` will be ``None``.
+ ``ForeignKey(Author, on_delete=models.CASCADE)``. The ``related_model`` for
+ a ``GenericForeignKey`` is always ``None``.