"django.db.models.query.QuerySet" vs "django.db.models.QuerySet"
35 views
Skip to first unread message
Ilya Kazakevich
unread,
Sep 29, 2015, 2:00:00 PM9/29/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
In Django 1.6 it QuerySet was in package "django.db.models.query.QuerySet". But since 1.7 it also may be imported with "django.db.models.QuerySet".
Is "django.db.models.query.QuerySet" deprecated since 1.7? What is the "official" way to import QuerySet? I can't find any documentation regard this subject.
Tim Graham
unread,
Sep 29, 2015, 8:52:32 PM9/29/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
Either way is okay; the original location isn't deprecated. I'd use the "convenience" import in django.db.models if it were me.