On Nov 10, 8:29 am, Михаил Лукин <mihail.lu...@googlemail.com> wrote:
> Well, I didn't find solution yet. Except that filter condition must be
> placed in LEFT OUTER JOIN ... ON ( <here> ), 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.

Django can not handle left joins where the filter conditions need to
be in the ON clause of the join. The comment for function join in
django.db.models.sql  clearly states this.

So if you really need to place the filter condition on the left outer
join, then there is nothing you can do except use raw SQL.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to