Am Dienstag, 16. Oktober 2007 15:48 schrieb Jeremy Dunck: > On 10/16/07, Thomas Guettler <[EMAIL PROTECTED]> wrote: > > Hi, > > > > you can use the extra() method of QuerySet: > > > > Example: Entry.objects.extra(where=['id IN (3, 4, 5, 20)']) > > How is this different from __in, and where did that list of numbers > come from? :)
It was just an example (from the link) . Since the original post seems to be understand SQL well, I think it is no problem for him to use this examle to create something like this: Build.objects.extra(where=[''' `iKeyBuildNr` IN ( SELECT `iFKeyBuildNr` FROM `package` WHERE `strPackageName` IN ("denon_AVR4306") )''']) --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---