Re: OR lookups across related tables

2007-05-15 Thread Jiri Barton
That is actually the same :-) However neither Author.objects.filter( Q(name='Jiri Barton') | Q(article__title__icontains='revealed')) works. :-( --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group

Re: OR lookups across related tables

2007-05-15 Thread Wolfram Kriesing
just quickly skimming over, did you mean? Author.objects.filter( Q(name='Jiri Barton') | Q(article__title__icontains='revealed')) On 5/15/07, Jiri Barton <[EMAIL PROTECTED]> wrote: > > Hi, why does not the following work? > > My simple model: > > class Author(models.Model): > name = models.C