Re: annotation with filter issue (left join needed)

2009-11-10 Thread Михаил Лукин
It seems that you're right :( raw SQL takes away most of benefits of ORM 2009/11/10 akaariai > > > > On Nov 10, 8:29 am, Михаил Лукин wrote: > > Well, I didn't find solution yet. Except that filter condition must be > > placed in LEFT OUTER JOIN

Re: annotation with filter issue (left join needed)

2009-11-10 Thread akaariai
On Nov 10, 8:29 am, Михаил Лукин wrote: > Well, I didn't find solution yet. Except that filter condition must be > placed in LEFT OUTER JOIN ... ON ( ), but i'm not sure if it's > possible with Django ORM. I notices that Aggregate base class takes 'extra' >

Re: annotation with filter issue (left join needed)

2009-11-09 Thread Михаил Лукин
Well, I didn't find solution yet. Except that filter condition must be placed in LEFT OUTER JOIN ... ON ( ), but i'm not sure if it's possible with Django ORM. I notices that Aggregate base class takes 'extra' argument in its constructor, but I'm not sure how to use it for such purpose. Any