[1.10.x] Fixed #27511 -- Corrected Field.related_model docs about GenericRelation.

Backport of 55adfc0760 from master
This commit is contained in:
Tim Graham 2016-11-21 12:30:54 -05:00
parent 89d16636be
commit 59ea6fd686
1 changed files with 2 additions and 3 deletions

View File

@ -2015,6 +2015,5 @@ have boolean values (rather than ``None``) if the field is a relation type
.. attribute:: Field.related_model .. attribute:: Field.related_model
Points to the model the field relates to. For example, ``Author`` in Points to the model the field relates to. For example, ``Author`` in
``ForeignKey(Author, on_delete=models.CASCADE)``. If a field has a generic ``ForeignKey(Author, on_delete=models.CASCADE)``. The ``related_model`` for
relation (such as a ``GenericForeignKey`` or a ``GenericRelation``) then a ``GenericForeignKey`` is always ``None``.
``related_model`` will be ``None``.