Fixed #31591 -- Clarified "reverse" lookup name in making queries docs.
This commit is contained in:
parent
20a8a443f0
commit
5af17babb0
|
@ -495,8 +495,9 @@ is ``'Beatles Blog'``::
|
|||
|
||||
This spanning can be as deep as you'd like.
|
||||
|
||||
It works backwards, too. To refer to a "reverse" relationship, use the
|
||||
lowercase name of the model.
|
||||
It works backwards, too. Whilst it :attr:`can be customized
|
||||
<.ForeignKey.related_query_name>`, by default you refer to a "reverse"
|
||||
relationship in a lookup using the lowercase name of the model.
|
||||
|
||||
This example retrieves all ``Blog`` objects which have at least one ``Entry``
|
||||
whose ``headline`` contains ``'Lennon'``::
|
||||
|
|
Loading…
Reference in New Issue