Re: Creating a QuerySet where the presence of a row is dependent on other rows in the result

2014-08-22 Thread Russell Keith-Magee
On Fri, Aug 22, 2014 at 3:20 PM, Dave Cole wrote: > I have a problem where I need to define a QuerySet where the conditions > for including one row depend on evaluating values in one or more other rows > in the QuerySet. > > Is there a way to manually construct a QuerySet by iterating over rows >

Creating a QuerySet where the presence of a row is dependent on other rows in the result

2014-08-22 Thread Dave Cole
I have a problem where I need to define a QuerySet where the conditions for including one row depend on evaluating values in one or more other rows in the QuerySet. Is there a way to manually construct a QuerySet by iterating over rows from another QuerySet and individually adding them to the n