I read that myself. I asked the question because it goes on to state that you can specify down-stream models like this:
query.select_related(person__place) If it follows all relationships as far as possible, even when specific relationships are requested, why would that syntax ever be necessary? We could just specify "people", and it would follow the "place" relationship automatically. Is it only to specifically prevent it from following other relationships on the "person" model? The docs seem to be ambiguous on this point. Thanks, Michael On Thursday 10 June 2010 03:37:59 pm Dan Harris wrote: > 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 > [email protected] > > On Jun 10, 3:19 pm, Michael Hrivnak <[email protected]> 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 >
signature.asc
Description: This is a digitally signed message part.

