Ticket #2922 - Defining outer joins

2007-02-01 Thread Jonathan Buchanan
http://code.djangoproject.com/ticket/2922 Could I ask that the functionality proposed in this ticket be reconsidered for inclusion? I've encountered a situation where I need to be able to add an outer join and *also* use the ON clause to specify conditions additional to the primary key join gene

Re: defining outer joins

2006-10-17 Thread Russell Keith-Magee
On 10/17/06, Michael Radziej <[EMAIL PROTECTED]> wrote: > > I guess this is currently under a freeze. I just wanted to bring > it up for discussion. If there's serious interest, I can flesh it > out (docs, testcases) later when the winter^H^H^H^H^H^H^H freeze > is over. You can already specify th

defining outer joins

2006-10-17 Thread Michael Radziej
Hi, I was looking for an easy way to define extra outer joins. It turned out that it's easy to extend the QuerySet.extra method with a 'joins' argument used like this: notes = Note.objects.select_related().extra( joins=['''left outer join %s rel1 on rel1.id=%s.release_beginn_id