Re: How to use not equal in QuerySet

2006-03-20 Thread limodou
On 3/21/06, Max Battcher <[EMAIL PROTECTED]> wrote: > > limodou wrote: > > I seen that in the db-api.txt document, > > > > neNot equal to. > > > > But when I want to get the users who are not the superuser, I got the > > error below: > > > > Got invalid lookup_type: 'ne' > > > > The statement

Re: How to use not equal in QuerySet

2006-03-20 Thread Max Battcher
limodou wrote: > I seen that in the db-api.txt document, > > neNot equal to. > > But when I want to get the users who are not the superuser, I got the > error below: > > Got invalid lookup_type: 'ne' > > The statement is: > > blogers = User.objects.all().filter(is_superuser__ne=True)

How to use not equal in QuerySet

2006-03-20 Thread limodou
I seen that in the db-api.txt document, ne Not equal to. But when I want to get the users who are not the superuser, I got the error below: Got invalid lookup_type: 'ne' The statement is: blogers = User.objects.all().filter(is_superuser__ne=True) And I check the code, and there is n