On Mon, Jun 22, 2009 at 3:36 PM, nevvkid <nevv...@googlemail.com> wrote:

>
> Hello together,
> i wonder if it's possible to add a custom filter to a join "ON". E.g.
> a query:
>
> SELECT * FROM `table` INNER JOIN `table_attribute` ON (`table`.`id` =
> `table_attribute`.`lamp_id` AND foo=bar);
>
> Please have a look at "foo=bar".
>
> There is a method "filter" for django models, but that's not what i
> need... :)
>
> Any hints?
>
> Thanks and best regards,
> Johannes
>
> >
>
No, currently there is no way to add extra join conditions (this will likely
be addressed in some way during the 1.2 timeine since it is needed for this
ticket: http://code.djangoproject.com/ticket/10870 to be solved).

Alex

-- 
"I disapprove of what you say, but I will defend to the death your right to
say it." --Voltaire
"The people's good is the highest law."--Cicero

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