Re: select_related() depth when specifying fields

2010-06-11 Thread Michael Hrivnak
w I read the docs, it may not be correct :) > > Cheers, > > Dan Harris > dih0...@gmail.com > > On Jun 10, 4:54 pm, Michael Hrivnak wrote: > > I read that myself. I asked the question because it goes on to state > > that you can specify down-stream models like this

Re: select_related() depth when specifying fields

2010-06-10 Thread Michael Hrivnak
> 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 wrote: > > If I use select_related() on a queryset and

select_related() depth when specifying fields

2010-06-10 Thread Michael Hrivnak
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 Description: This is a digitally signed message part.

select_related and OneToOneField

2009-02-02 Thread Michael Hrivnak
Does select_related work for OneToOneField relationships? If so, does it work in both directions? Thanks, Michael --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send e

many-ended relationship retrieval

2008-07-06 Thread Michael Hrivnak
I am using django 0.96.1 mostly for its database API on a large project. I need to retrieve many-ended relationship data. For example, for every user, I need to know what groups they are in. As expected, there is a many-to-many relationship. The code I've written will get a queryset of users