On Jun 23, 2011, at 2:30 PM, Ian Clelland wrote: > person_id is a column in the payee table, and Django will construct SQL which > compares against that.
It's the reverse actually payee_id is a column on the person table.... so I guess the resulting SQL would need to be select * from er_payee, er_person where er_person.id = 26 and er_person.payee_id = er_payee.id; or select * from er_payee join er_person on er_person.id = 26 and er_person.payee_id = er_payee.id; ? In any case it's not getting that far - seems like it fails before it even builds a query ... -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. 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.

