From 59ea6fd686c20aa189f0d75202d2df601c687b1c Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Mon, 21 Nov 2016 12:30:54 -0500 Subject: [PATCH] [1.10.x] Fixed #27511 -- Corrected Field.related_model docs about GenericRelation. Backport of 55adfc076030fc6be2c8d459c4c0a5c91cd4c94c from master --- docs/ref/models/fields.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt index 250311d9e61..0ee58a7d917 100644 --- a/docs/ref/models/fields.txt +++ b/docs/ref/models/fields.txt @@ -2015,6 +2015,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``.