Currently the example [1] uses `BaseManager` while in the preceding
paragraph is `Manager`.
[1] https://docs.djangoproject.com/en/dev/topics/db/managers/#from-
queryset
--
Ticket URL: <https://code.djangoproject.com/ticket/27865>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* easy: 1 => 0
Comment:
A `BaseManager` is defined in that example that's different from
`django.db.models.manager.BaseManager`. Does the example not work as
written?
--
Ticket URL: <https://code.djangoproject.com/ticket/27865#comment:1>
Comment (by Jonatas CD):
My idea was to keep the example to text - specially after that mentioned
ticket.
--
Ticket URL: <https://code.djangoproject.com/ticket/27865#comment:2>
Comment (by Tim Graham):
I'm not sure what you mean by "keep the example to text".
`django.db.models.manager.BaseManager` isn't a documented API, so I don't
see the reason why we'd need a note saying not to use something that's not
documented. Anyway, will you propose a patch?
--
Ticket URL: <https://code.djangoproject.com/ticket/27865#comment:3>
Comment (by Jonatas CD):
sure. I'll do it
--
Ticket URL: <https://code.djangoproject.com/ticket/27865#comment:4>
* owner: nobody => Jonatas CD
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/27865#comment:5>
* stage: Unreviewed => Someday/Maybe
--
Ticket URL: <https://code.djangoproject.com/ticket/27865#comment:6>
* has_patch: 0 => 1
* stage: Someday/Maybe => Ready for checkin
Comment:
[https://github.com/django/django/pull/12543 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/27865#comment:7>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"a2f554249ec07d4643643773a995579f98564ac1" a2f55424]:
{{{
#!CommitTicketReference repository=""
revision="a2f554249ec07d4643643773a995579f98564ac1"
Fixed #27865 -- Adjusted docs example to avoid confusion with
models.BaseManager.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/27865#comment:8>
Comment (by Carlton Gibson <carlton.gibson@…>):
In [changeset:"0f524f56864e8894a8229d16a96582d80c78d939" 0f524f56]:
{{{
#!CommitTicketReference repository=""
revision="0f524f56864e8894a8229d16a96582d80c78d939"
[3.0.x] Fixed #27865 -- Adjusted docs example to avoid confusion with
models.BaseManager.
Backport of a2f554249ec07d4643643773a995579f98564ac1 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/27865#comment:9>