"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
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
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.
Reply all
Reply to author
Forward
0 new messages