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