Re: Problem with query on m2m relation

2007-10-19 Thread Malcolm Tredinnick
On Fri, 2007-10-19 at 08:24 -0700, web-junkie wrote: > Hi, > > I have a m2m relationship from books to authors. A book can have 0-n > authors (yes, don't ask why there can be no authors). If I want to do > a search where I it should match the title or authors, I just gives me > books that have an

Problem with query on m2m relation

2007-10-19 Thread web-junkie
Hi, I have a m2m relationship from books to authors. A book can have 0-n authors (yes, don't ask why there can be no authors). If I want to do a search where I it should match the title or authors, I just gives me books that have an author. Not the other matches. See here for the code: http://dp