Opened 10 years ago
Closed 10 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 )
I'm pretty new to Django, but the guys at the IRC room told me to report it.
Here's the link:
note: its the inherited class on 4th line down
Change History (2)
comment:1 by , 10 years ago
Description: | modified (diff) |
---|
comment:2 by , 10 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
models.QuerySet
is a convenience import[1], i.e. it is imported explicitly indjango/db/models/__init__.py
, just so you can import it asfrom 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