Re: Filtering by another object's ManyToMany properties

2010-03-10 Thread Laereom
Hey, thanks. EXACTLY what I needed. On Mar 10, 3:03 pm, Daniel Roseman wrote: > On Mar 10, 10:38 pm, Laereom wrote: > > > > > > > I have two models, we'll call them 'Question' and 'Search'. > > > Search has a many to many field called 'questions' which contain, > > naturally, a set of questions

Re: Filtering by another object's ManyToMany properties

2010-03-10 Thread Daniel Roseman
On Mar 10, 10:38 pm, Laereom wrote: > I have two models, we'll call them 'Question' and 'Search'. > > Search has a many to many field called 'questions' which contain, > naturally, a set of questions. > > I want to retrieve a Question which is associated with a particular > Search through that man

Re: Filtering by another object's ManyToMany properties

2010-03-10 Thread Nick
try search__questions.id the __ spans the many to many relationship On Mar 10, 4:38 pm, Laereom wrote: > I have two models, we'll call them 'Question' and 'Search'. > > Search has a many to many field called 'questions' which contain, > naturally, a set of questions. > > I want to retrieve a Que

Filtering by another object's ManyToMany properties

2010-03-10 Thread Laereom
I have two models, we'll call them 'Question' and 'Search'. Search has a many to many field called 'questions' which contain, naturally, a set of questions. I want to retrieve a Question which is associated with a particular Search through that many to many field. It seemed straightforward -- I