Re: select_related() does not span apps?

2007-04-24 Thread Paul Smith
My mistake -- I had unintentionally set 'null=True' in the ForeignKey definition. -Paul On Apr 24, 1:08 pm, Paul Smith <[EMAIL PROTECTED]> wrote: > I have a model defined with a ForeignKey that points to another model > in a different installed app. select_related() does not seem to follow > the

select_related() does not span apps?

2007-04-24 Thread Paul Smith
I have a model defined with a ForeignKey that points to another model in a different installed app. select_related() does not seem to follow the relationship and retrieve the additional object data in a single database query with additional join statements. (I inspected the 'sql' item in the appro