From b1e0262c9f9d11eae6230b51c5aa5d71122d5f05 Mon Sep 17 00:00:00 2001 From: Segni Mekonnen Date: Tue, 14 Oct 2025 15:28:39 -0500 Subject: [PATCH] Fixed #36665 -- Improved manager usage guidance in docs/topics/db/optimization.txt. --- docs/topics/db/optimization.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/topics/db/optimization.txt b/docs/topics/db/optimization.txt index 3be0bd2cb5..e03c9c6354 100644 --- a/docs/topics/db/optimization.txt +++ b/docs/topics/db/optimization.txt @@ -226,8 +226,9 @@ and :meth:`~django.db.models.query.QuerySet.prefetch_related`. Understand their documentation thoroughly and apply them where needed. It may be useful to apply these methods in :doc:`managers and default managers -`. Be aware when your manager is and is not used; -sometimes this is tricky so don't make assumptions. +`. Be aware when your manager is and is not used; for +example, related object access :ref:`uses the base manager +` rather than the default manager. Use ``prefetch_related_objects()`` ----------------------------------