mymodule.get_list(_or=[[('from__icontains', 'armin'), ('to__icontains', 'armin')]])

Don't ask...

Stefan


On 2. Nov 2005, at 05:14, Armin wrote:


How can I do 'or' in Django's Database API. Something like this:

select * from message where from = 'armin' OR to = 'armin'

Thank you in advance for your response. You guys are great.

Armin

--
Anything that happens, happens.  --Douglas Adams


Reply via email to