On Wed, 2008-04-23 at 22:30 -0700, jonknee wrote: > I have four models that I want to combine into one report. The manual > SQL is pretty easy, three INNER JOINS. I just can't figure out how to > get the ORM to do it. I'm using the auth app with a custom profile > model and that seems to be the issue, since the User model doesn't > have a foreignkey to the Profile model, that data isn't showing up in > my QuerySet.
Look at the 'tables' and 'where' parameters to the extra() method on querysets. Regards, Malcolm -- A conclusion is the place where you got tired of thinking. http://www.pointy-stick.com/blog/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---