You have to use `Q` objects [1]
[1]:
http://docs.djangoproject.com/en/dev/topics/db/queries/#complex-lookups-with-q-objects
On Sat, Feb 21, 2009 at 9:40 PM, Nate Morse wrote:
>
> Before I go down the road of writing SQL by hand or using
> QuerySet.extra(...) [ don't know
Before I go down the road of writing SQL by hand or using
QuerySet.extra(...) [ don't know much about that yet:], I thought I
would ask if there is a way to achieve (within the QuerySet methods)
something like
...WHERE field_a = 'abc' OR field_b = '123' ...?
It seems if I do:
rs =
2 matches
Mail list logo