[Django] #24879: In the docs, models.QuerySet is used instead of models.query.QuerySet

17 views
Skip to first unread message

Django

unread,
May 29, 2015, 10:14:01 PM5/29/15
to django-...@googlegroups.com
#24879: In the docs, models.QuerySet is used instead of models.query.QuerySet
-------------------------------+--------------------
Reporter: devtester44 | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: 1.8
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------+--------------------
I'm pretty new to Django, but the guys at the IRC room told me to report
it.

Here's the link:

https://docs.djangoproject.com/en/1.8/topics/db/managers/#calling-custom-
queryset-methods-from-the-manager

--
Ticket URL: <https://code.djangoproject.com/ticket/24879>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
May 29, 2015, 10:15:59 PM5/29/15
to django-...@googlegroups.com
#24879: In the docs, models.QuerySet is used instead of models.query.QuerySet
-------------------------------+--------------------------------------

Reporter: devtester44 | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: 1.8
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 1 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by devtester44):

* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0


Old description:

> I'm pretty new to Django, but the guys at the IRC room told me to report
> it.
>
> Here's the link:
>
> https://docs.djangoproject.com/en/1.8/topics/db/managers/#calling-custom-
> queryset-methods-from-the-manager

New description:

I'm pretty new to Django, but the guys at the IRC room told me to report
it.

Here's the link:

https://docs.djangoproject.com/en/1.8/topics/db/managers/#calling-custom-
queryset-methods-from-the-manager

note: its the inherited class on 4th line down

--

--
Ticket URL: <https://code.djangoproject.com/ticket/24879#comment:1>

Django

unread,
May 30, 2015, 7:45:33 AM5/30/15
to django-...@googlegroups.com
#24879: In the docs, models.QuerySet is used instead of models.query.QuerySet
-------------------------------+--------------------------------------
Reporter: devtester44 | Owner: nobody
Type: Bug | Status: closed
Component: Documentation | Version: 1.8
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage: Unreviewed

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 1 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by knbk):

* status: new => closed
* resolution: => invalid


Comment:

`models.QuerySet` is a convenience import[1], i.e. it is imported
explicitly in `django/db/models/__init__.py`, just so you can import it as
`from django.db.models import QuerySet`. Django recommends using this
instead of the actual location.

[1]
https://github.com/django/django/blob/master/django/db/models/__init__.py#L4

--
Ticket URL: <https://code.djangoproject.com/ticket/24879#comment:2>

Reply all
Reply to author
Forward
0 new messages