summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlton Gibson <carlton@noumenal.es>2020-05-19 20:27:05 +0200
committerGitHub <noreply@github.com>2020-05-19 20:27:05 +0200
commit5af17babb0f895cf129fdeee92548d2ac12e78e2 (patch)
treec78616cd8d4dbc25a21f48db3f9cc6c5e8573cb6
parent20a8a443f012907843450c0b6f6a34a9fc8138f3 (diff)
Fixed #31591 -- Clarified "reverse" lookup name in making queries docs.
-rw-r--r--docs/topics/db/queries.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/topics/db/queries.txt b/docs/topics/db/queries.txt
index c0e141ea8d..ed69ae5762 100644
--- a/docs/topics/db/queries.txt
+++ b/docs/topics/db/queries.txt
@@ -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'``::