Is is possible to make use of boolean logic in QuerySet filters?

Say I have two dates:
my_model.foo_date
my_model.bar_date

I'd like to do my_model.objects.filter(foo_date__gt=somedate OR
bar_date__gt=somedate)

Obviously that syntax isn't valid, but does something exist to allow
that sort of logic?

Thanks,
  --Ben


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

Reply via email to