diff options
| author | Tim Graham <timograham@gmail.com> | 2016-11-21 12:30:54 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-11-21 12:53:35 -0500 |
| commit | 59ea6fd686c20aa189f0d75202d2df601c687b1c (patch) | |
| tree | 9ad262fdbbdd1f5e71105c4cddb734b0ee5a7f16 | |
| parent | 89d16636be0abf7c93272ba6a0bbd9eda09c3613 (diff) | |
[1.10.x] Fixed #27511 -- Corrected Field.related_model docs about GenericRelation.
Backport of 55adfc076030fc6be2c8d459c4c0a5c91cd4c94c from master
| -rw-r--r-- | docs/ref/models/fields.txt | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt index 250311d9e6..0ee58a7d91 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``. |
