mirror of https://github.com/django/django.git
[1.10.x] Fixed #27511 -- Corrected Field.related_model docs about GenericRelation.
Backport of 55adfc0760
from master
This commit is contained in:
parent
89d16636be
commit
59ea6fd686
|
@ -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``.
|
|
||||||
|
|
Loading…
Reference in New Issue