mirror of
https://github.com/django/django.git
synced 2025-11-18 11:00:24 +00:00
Fixed #36665 -- Improved manager usage guidance in docs/topics/db/optimization.txt.
Some checks are pending
Docs / lint-docs (push) Waiting to run
Docs / spelling (push) Waiting to run
Docs / blacken-docs (push) Waiting to run
Linters / flake8 (push) Waiting to run
Linters / isort (push) Waiting to run
Linters / black (push) Waiting to run
Tests / Windows, SQLite, Python 3.14 (push) Waiting to run
Tests / JavaScript tests (push) Waiting to run
Some checks are pending
Docs / lint-docs (push) Waiting to run
Docs / spelling (push) Waiting to run
Docs / blacken-docs (push) Waiting to run
Linters / flake8 (push) Waiting to run
Linters / isort (push) Waiting to run
Linters / black (push) Waiting to run
Tests / Windows, SQLite, Python 3.14 (push) Waiting to run
Tests / JavaScript tests (push) Waiting to run
This commit is contained in:
parent
56977b466c
commit
b1e0262c9f
1 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
</topics/db/managers>`. Be aware when your manager is and is not used;
|
||||
sometimes this is tricky so don't make assumptions.
|
||||
</topics/db/managers>`. Be aware when your manager is and is not used; for
|
||||
example, related object access :ref:`uses the base manager
|
||||
<managers-for-related-objects>` rather than the default manager.
|
||||
|
||||
Use ``prefetch_related_objects()``
|
||||
----------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue