mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
[1.6.x] Fixed #23597 -- Clarified the manager that {Single,Multiple}ObjectMixin.model uses.
Backport of e501d4c505 from master
This commit is contained in:
committed by
Tim Graham
parent
e71ef9b6f2
commit
0aad1f1ea9
@@ -169,6 +169,11 @@ For example::
|
||||
This example allows you to request ``Person.men.all()``, ``Person.women.all()``,
|
||||
and ``Person.people.all()``, yielding predictable results.
|
||||
|
||||
.. _default-managers:
|
||||
|
||||
Default managers
|
||||
~~~~~~~~~~~~~~~~
|
||||
|
||||
If you use custom ``Manager`` objects, take note that the first ``Manager``
|
||||
Django encounters (in the order in which they're defined in the model) has a
|
||||
special status. Django interprets the first ``Manager`` defined in a class as
|
||||
|
||||
Reference in New Issue
Block a user