On 6/15/07, Nicholas Ding <[EMAIL PROTECTED]> wrote:
> But why not add a 'ne' term to do this?
> eg. Foo.objects.filter(column1__ne='', column2__ne='')
> I think it's more simple.

Older versions of Django supported that, but the current 'exclude'
syntax is a little more robust in terms of things you can negate,
(e.g., instead of just doing "not equal to", you can do "does not
start with", "does not contain", "is not less than", etc.).

-- 
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to