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 relationship and retrieve the additional object data in a single
> database query with additional join statements. (I inspected the 'sql'
> item in the appropriate django.db.connection.queries item to verify.)
>
> Is this the expected behavior? Have others managed to get this to
> work?
>
> Cheers,
> -Paul


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to