From 617ce75042a4b1b582a639512d74345c85c131b3 Mon Sep 17 00:00:00 2001 From: collerek Date: Tue, 23 Mar 2021 09:15:13 +0100 Subject: [PATCH] finish docs --- docs/queries/joins-and-subqueries.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/queries/joins-and-subqueries.md b/docs/queries/joins-and-subqueries.md index f295f1b..fc26518 100644 --- a/docs/queries/joins-and-subqueries.md +++ b/docs/queries/joins-and-subqueries.md @@ -226,6 +226,10 @@ If for example `Company` would have 3 relations and all of those 3 relations hav 3 relations you would have to issue 9 relation strings to `select_related`, `select_all()` is also resistant to change in names of relations. +!!!note + Note that you can chain `select_all()` with other `QuerySet` methods like `filter`, `exclude_fields` etc. + To exclude relations use `exclude_fields()` call with names of relations (also nested) to exclude. + ## prefetch_related `prefetch_related(related: Union[List, str]) -> QuerySet`