#31342: Default manager vs Base manager for RelatedManager
--------------------------------------------+-------------------------
Reporter: Benjamin Mampaey | Owner: nobody
Type: Uncategorized | Status: new
Component: Documentation | Version: 2.2
Severity: Normal | Keywords: manager
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 1
UI/UX: 0 |
--------------------------------------------+-------------------------
The documentation on Base Managers
https://docs.djangoproject.com/en/2.2/topics/db/managers/#base-managers is
confusing or incomplete.
It specifies "By default, Django uses an instance of the
Model._base_manager manager class when accessing related objects (i.e.
choice.question), not the _default_manager on the related object."
But when accessing the set of related objects, i.e. question.choice_set,
it is the default manager that is used. This does not appear clearly in
the documentation.
--
Ticket URL: <https://code.djangoproject.com/ticket/31342>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/051.72975ba1a1b5716386d094247c4d6046%40djangoproject.com.