How to do m2m AND and OR filters? #1421
Unanswered
charleshan
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Similar to #595 but I'd like to use AND and OR filters.
e.g. /?tags=2,3,4&tags=5
This would translate to
filter(tags__in=[2,3,4]).filter(tags__in=[5])
I got the first half using the
NumberInFilter
example from the docs but it looks like I'm only able to get the last query parameter.Beta Was this translation helpful? Give feedback.
All reactions