According to the select_related() documentation at:
http://docs.djangoproject.com/en/dev/ref/models/querysets/#django.db.models.QuerySet.select_related

it looks like select related "follows foreign keys as far as
possible". In the documentation example it shows select_related
following a foreign keys with a depth of two.

Hope this helps,

Dan Harris
dih0...@gmail.com

On Jun 10, 3:19 pm, Michael Hrivnak <mhriv...@americanri.com> wrote:
> If I use select_related() on a queryset and specify some attribute names, will
> it follow those relationships as far as possible, or does that imply
> "depth=1"?
>
> Thanks,
> Michael
>
>  signature.asc
> < 1KViewDownload

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to