Either way is okay; the original location isn't deprecated. I'd use the "convenience" import in django.db.models if it were me.
On Tuesday, September 29, 2015 at 2:00:00 PM UTC-4, Ilya Kazakevich wrote:
-- On Tuesday, September 29, 2015 at 2:00:00 PM UTC-4, Ilya Kazakevich wrote:
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.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a2be7d1f-3eaa-4e00-bff4-20c42c4c4e49%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment