Is there an OR filter? - Django
Posted
by RadiantHex
on Stack Overflow
See other posts from Stack Overflow
or by RadiantHex
Published on 2010-06-03T09:08:32Z
Indexed on
2010/06/03
9:14 UTC
Read the original article
Hit count: 492
Hi folks,
is there any way of doing the following
Unicorn.objects.or_filter(magical=True).or_filter(unicorn_length=15).or_filter(skin_color='White').or_filter(skin_color='Blue')
where or_filter stands for an isolated match
I remember using something similar but cannot find the function anymore!
Help would be great! Thanks :)
© Stack Overflow or respective owner