Replies: 1 comment 3 replies
-
Take a look at At the bottom level they both use a widget that calls QueryDict.getlist() to fetch a list of values, rather than just a single value, from the query string. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I defined my field as:
region = UUIDFilter(method="filter_by_region")
When client send urls params like
?region=f157cb5a-7cb0-4672-82b3-3d5e381b6c60®ion=f157cb5a-7cb0-4672-82b3-3d5e381b6c61
, I got only the last value invalue
parameter offilter_by_region
method, but I need all of them as a list. What is the best way of handling this use case? I would expect parameter likemany=True
for filter object or some kind of wrapper that accepts filter object for representing array of objects (e.g.ArrayFilter(UUIDFilter(...))
). But I couldn't find any of these in the documentation and also any other possible solution.How would you implement this?
Beta Was this translation helpful? Give feedback.
All reactions