Django uses different functions for this. To get the opposite of this (the ne version)
Foo.objects.filter(bar__exact='something') do Foo.objects.exclude(bar__exact='something') HTH, Todd On Fri, 2007-06-15 at 11:37 +0800, Nicholas Ding wrote: > I found Django can not do '<>' operation in SQL, such as "where column > <> %s". > While diving into the source code, it seems easy to add a 'ne' to > existing query terms. > But why Django doesn't include this, it's confuse me a lot. > > Best Regards. > -- > Nicholas @ Nirvana Studio > http://www.nirvanastudio.org > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---