Opened 9 years ago

Closed 9 years ago

#24879 closed Bug (invalid)

In the docs, models.QuerySet is used instead of models.query.QuerySet

Reported by: devtester44 Owned by: nobody
Component: Documentation Version: 1.8
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description (last modified by devtester44)

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

Change History (2)

comment:1 by devtester44, 9 years ago

Description: modified (diff)

comment:2 by Marten Kenbeek, 9 years ago

Resolution: invalid
Status: newclosed

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

Note: See TracTickets for help on using tickets.
Back to Top