Fixed #27511 -- Corrected Field.related_model docs about GenericRelation.
This commit is contained in:
parent
19e2114634
commit
55adfc0760
|
@ -2007,6 +2007,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