Re: Newbie question: value inequality in Manager Method?

2010-03-19 Thread BobAalsma
Thanks to both: I felt I was missing something but couldn't find where to look :-) Bob On Mar 19, 3:55 pm, Bill Freeman wrote: > To expand on DR's answer slightly, the '=' in 'filter(crcWaarde=0)' is > not a comparison > operator.  All arguments to filter need to be of the

Re: Newbie question: value inequality in Manager Method?

2010-03-19 Thread Bill Freeman
To expand on DR's answer slightly, the '=' in 'filter(crcWaarde=0)' is not a comparison operator. All arguments to filter need to be of the form "'leagal_identifier'=value". This is python syntax, nothing to do with django. Think of this '=' as being more akin to assignment. The answer to your

Re: Newbie question: value inequality in Manager Method?

2010-03-19 Thread Daniel Roseman
On Mar 19, 1:22 pm, BobAalsma wrote: > In models.py, when I use > class GevondenManager(models.Manager): >         def get_query_set(self): >                 return > super(GevondenManager,self).get_query_set().filter(crcWaarde > = 0) > I get proper answers. > > However, I

Newbie question: value inequality in Manager Method?

2010-03-19 Thread BobAalsma
In models.py, when I use class GevondenManager(models.Manager): def get_query_set(self): return super(GevondenManager,self).get_query_set().filter(crcWaarde = 0) I get proper answers. However, I want to filter on "not equal to" and this does not seem to work. How to