Replies: 1 comment
-
Are you sure you're using a multiple choice filter? See e.g. https://django-filter.readthedocs.io/en/stable/ref/filters.html#modelmultiplechoicefilter |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When querying with multiple values, as such:
api/products/?category__in=Office?category__in=Kitchen?category__in=Bedroom
Before cleanup the querydict will be:
category__in=['Office', 'Kitchen', 'Bedroom']
but after cleaning up the data, Django only takes the last value:
category__in=['Bedroom']
What is the proper way to do this then?
Beta Was this translation helpful? Give feedback.
All reactions