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
> 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
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.
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
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
5 matches
Mail list logo