On Sun, Feb 1, 2009 at 4:36 AM, Kyle <thinki...@gmail.com> wrote: > Hello again. > > I have one more question about the three table lookup I am trying to > complete. > > The details of my situation are posted here: http://dpaste.com/115244/ > > Does anybody have any idea on how to use django's ORM to perform two INNER > JOINS, a WHERE, and an ORDER BY? > > Thanks in advance for any help and further guidance! > > Try:
Project.objects.filter(campaign__industry__industry=1).order_by('campaign__industry__gridorder') Karen --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---