Filter by repeated fields /some_endpoint?sth=1&sth=2&sth=3 #1411
Unanswered
Przemek625
asked this question in
Q&A
Replies: 1 comment
-
See the docs for |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How to write a filter that will filter by multiple repeated params. For example:
/some_endpoint?sth=1&sth=2&sth=3
Lets assume that sth is
IntegerField
. It would be good if it could also valudate if the gived param is also Integer in this case.I went through the documentation and I find it extremely difficult to do sth as simple as that.
I found example that allows to filter by values seperated with
,
. I mean this code:But this does not meet my requirements and I am not interested in this class.
For examle in django rest framework it is very easy to achieve this. It is as simple as that :
Beta Was this translation helpful? Give feedback.
All reactions